Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
WCMS
Drupal Recommended Project
Commits
56b3a03b
Commit
56b3a03b
authored
Apr 20, 2022
by
Nihal Sahu
Browse files
ISTWCMS-5365: Add Redirects test.
parent
635156d1
Changes
2
Hide whitespace changes
Inline
Side-by-side
behat/README.md
View file @
56b3a03b
...
...
@@ -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
...
...
behat/bootstrap/RedirectsTest.feature
0 → 100644
View file @
56b3a03b
@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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment