Loading tests/features/vardoc/03-admin-management/03-03-admins-can-disable-users.feature +24 −32 Original line number Diff line number Diff line Loading @@ -5,10 +5,12 @@ So that they will be disabled and not be able to use the site. @javascript @local @development @staging @production Scenario: Check if the Normal user user is not blocked and can login Given I am on "user/login" And I wait When I fill in "Normal user" for "Username" Given I am on "/user/login" And I wait 6s When I fill in "Normal user" for "Email or username" And I fill in "dD.123123ddd" for "Password" And I scroll to bottom And I wait 2s And I press "Log in" And I wait Then I should see "Normal user" Loading @@ -26,47 +28,37 @@ So that they will be disabled and not be able to use the site. When I click "Edit" in the "Normal user" row And I wait Then I should see "Normal user" When I fill in "Normal user" for "First name" And I fill in "Vardot" for "Last name" And I select the radio button "Blocked" And I press "Save" When I select the radio button "Blocked" And I press the "Save" button And I wait Then I should see "The changes have been saved." @javascript @local @development @staging @production Scenario: Check if the blocked user with user id of Test Blocked User ID can or can not login Given I am on "user/login" And I wait When I fill in "Normal user" for "Username" Given I am on "/user/login" And I wait 6s When I fill in "Normal user" for "Email or username" And I fill in "dD.123123ddd" for "Password" And I scroll to bottom And I wait 2s And I press "Log in" And I wait Then I should see "The username Normal user has not been activated or is blocked." @javascript @local @development @staging @production Scenario: Check if the site admin can Administer users and disable a User account Normal user from accessing the site Given I am a logged in user with the "Site admin" user When I go to "/admin/people" And I wait Then I should see "People" When I fill in "Normal user" for "Name or email contains" And I press "Filter" And I wait Then I should see "Normal user" When I click "Edit" in the "Normal user" row Scenario: Check flood control default settings Given I am a logged in user with the "webmaster" user When I go to "/admin/config/people/flood-control" And I wait Then I should see "Normal user" When I select the radio button "Active" And I press "Save" And I wait Then I should see "The changes have been saved." Then I should see "Flood control" And I should see "50" in the "#edit-ip-limit" element And I should see "1 hour" in the "#edit-ip-window" element And I should see "5" in the "#edit-user-limit" element And I should see "6 hours" in the "#edit-user-window" element @javascript @local @development @staging @production Scenario: Check if the Normal user user is active and can login again Given I am on "user/login" And I wait When I fill in "Normal user" for "Username" And I fill in "dD.123123ddd" for "Password" And I press "Log in" Scenario: Check that the Site Admin have access to the flood unblock page Given I am a logged in user with the "Site admin" user When I go to "/admin/people/flood-unblock" And I wait Then I should see "Normal user" No newline at end of file Then I should see "Flood Unblock" Loading
tests/features/vardoc/03-admin-management/03-03-admins-can-disable-users.feature +24 −32 Original line number Diff line number Diff line Loading @@ -5,10 +5,12 @@ So that they will be disabled and not be able to use the site. @javascript @local @development @staging @production Scenario: Check if the Normal user user is not blocked and can login Given I am on "user/login" And I wait When I fill in "Normal user" for "Username" Given I am on "/user/login" And I wait 6s When I fill in "Normal user" for "Email or username" And I fill in "dD.123123ddd" for "Password" And I scroll to bottom And I wait 2s And I press "Log in" And I wait Then I should see "Normal user" Loading @@ -26,47 +28,37 @@ So that they will be disabled and not be able to use the site. When I click "Edit" in the "Normal user" row And I wait Then I should see "Normal user" When I fill in "Normal user" for "First name" And I fill in "Vardot" for "Last name" And I select the radio button "Blocked" And I press "Save" When I select the radio button "Blocked" And I press the "Save" button And I wait Then I should see "The changes have been saved." @javascript @local @development @staging @production Scenario: Check if the blocked user with user id of Test Blocked User ID can or can not login Given I am on "user/login" And I wait When I fill in "Normal user" for "Username" Given I am on "/user/login" And I wait 6s When I fill in "Normal user" for "Email or username" And I fill in "dD.123123ddd" for "Password" And I scroll to bottom And I wait 2s And I press "Log in" And I wait Then I should see "The username Normal user has not been activated or is blocked." @javascript @local @development @staging @production Scenario: Check if the site admin can Administer users and disable a User account Normal user from accessing the site Given I am a logged in user with the "Site admin" user When I go to "/admin/people" And I wait Then I should see "People" When I fill in "Normal user" for "Name or email contains" And I press "Filter" And I wait Then I should see "Normal user" When I click "Edit" in the "Normal user" row Scenario: Check flood control default settings Given I am a logged in user with the "webmaster" user When I go to "/admin/config/people/flood-control" And I wait Then I should see "Normal user" When I select the radio button "Active" And I press "Save" And I wait Then I should see "The changes have been saved." Then I should see "Flood control" And I should see "50" in the "#edit-ip-limit" element And I should see "1 hour" in the "#edit-ip-window" element And I should see "5" in the "#edit-user-limit" element And I should see "6 hours" in the "#edit-user-window" element @javascript @local @development @staging @production Scenario: Check if the Normal user user is active and can login again Given I am on "user/login" And I wait When I fill in "Normal user" for "Username" And I fill in "dD.123123ddd" for "Password" And I press "Log in" Scenario: Check that the Site Admin have access to the flood unblock page Given I am a logged in user with the "Site admin" user When I go to "/admin/people/flood-unblock" And I wait Then I should see "Normal user" No newline at end of file Then I should see "Flood Unblock"