diff --git a/staff-features/users/user_create.feature b/staff-features/users/user_create.feature index 680f8477..b4e21f52 100644 --- a/staff-features/users/user_create.feature +++ b/staff-features/users/user_create.feature @@ -2,18 +2,19 @@ Feature: Create User Background: Given the user is logged in as an administrator Scenario: User is created - Given the user is on the Manage Users page - When the user clicks on 'Create User' + When the user clicks on 'System' + And the user clicks on 'Manage Users' + And the user clicks on 'Create User' And the user fills in the Username And the user fills in the Full name And the user fills in the Password And the user fills in the Confirm password And the user clicks on 'Create Account' Then the 'User Created' message is displayed - And the new user should appear in the search results Scenario: User is not created because required fields are missing - Given the user is on the Manage Users page - When the user clicks on 'Create User' + When the user clicks on 'System' + And the user clicks on 'Manage Users' + And the user clicks on 'Create User' And the user clicks on 'Create Account' Then the following error messages are displayed: | Username - can't be empty | diff --git a/staff-features/users/user_create.rb b/staff-features/users/user_create.rb index 2d62a526..c18b020f 100644 --- a/staff-features/users/user_create.rb +++ b/staff-features/users/user_create.rb @@ -1,10 +1,5 @@ # frozen_string_literal: true -Given 'the user is on the Manage Users page' do - click_on 'System' - click_on 'Manage Users' -end - When 'the user fills in the Username' do @uuid = SecureRandom.uuid @@ -22,7 +17,3 @@ When 'the user fills in the Confirm password' do fill_in 'Confirm password', with: "password #{@uuid}" end - -And 'the new user should appear in the search results' do - expect_record_to_be_in_search_results(@uuid) -end