Commit 56b3a03b authored by Nihal Sahu's avatar Nihal Sahu
Browse files

ISTWCMS-5365: Add Redirects test.

parent 635156d1
......@@ -39,6 +39,7 @@ Preview Button Test
Taxonomies Test
Layout Builder Browser Test
Quick Node Clone Test
Redirects Test
### TO DO:
layoutSectionConfigurationFormTest
......@@ -56,7 +57,6 @@ contactContentTypeTest
profileContentTypeTest
ffBlockTest
mediaTypesTest
redirectsTest
uwLdapTest
ckeditorButtonsTest
bannerBlockTest
......
@api
Feature: Test redirects.
Scenario: Check admin/people/permissions, only site manager has this role.
Given I am logged in as a user with the "administrator" role
And I am on "admin/people/permissions"
Then I should see a "input[id='edit-uw-role-site-manager-administer-redirects'][checked]" element
And I should see a "input[id='edit-uw-role-site-owner-administer-redirects']" element
And I should see a "input[id='edit-uw-role-content-editor-administer-redirects']" element
And I should see a "input[id='edit-uw-role-content-author-administer-redirects']" element
Scenario: Check admin/config/search/redirect/settings.
Given I am logged in as a user with the "administrator" role
And I am on "admin/config/search/redirect/settings"
Then the checkbox "edit-redirect-auto-redirect" should be unchecked
And the checkbox "edit-redirect-passthrough-querystring" should be checked
And I should see a "select[data-drupal-selector='edit-redirect-default-status-code'] option[value='301'][selected]" element
And the checkbox "edit-redirect-route-normalizer-enabled" should be checked
And the checkbox "edit-redirect-ignore-admin-path" should be unchecked
And the checkbox "edit-redirect-access-check" should be unchecked
And I should see a "select[data-drupal-selector='edit-row-limit'] option[value='10000'][selected]" element
And I should see a "textarea[name='ignore_pages']" element
And the checkbox "edit-suppress-404" should be unchecked
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment