Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Click event identifiers as strings #11

Merged
merged 1 commit into from
Sep 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions staff-features/accessions/accession_create.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ Feature: Accession Create
Scenario: Accession is created
Given the user is on the New Accession page
When the user fills in all the required fields
When the user clicks on Save
When the user clicks on 'Save'
Then a new accession is created
Scenario: Accession is not created
Given the user is on the New Accession page
When the user does not fill in all the required fields
When the user clicks on Save
When the user clicks on 'Save'
Then a new accession is not created
14 changes: 7 additions & 7 deletions staff-features/accessions/accession_delete.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ Feature: Accession Delete
Given an accession has been created
And the accession is in the search results
When the user clicks on the checkbox of the accession
And the user clicks on Delete
And the user clicks on Delete Records
And the message "Records deleted" is displayed
And the message "No records found" is displayed
And the user clicks on 'Delete'
And the user clicks on 'Delete Records'
And the message 'Records deleted' is displayed
And the message 'No records found' is displayed
Scenario: Accession is deleted from the view page
Given an accession has been created
And the user is on the accession details page
When the user clicks on Delete
When the user clicks on 'Delete'
And the user confirms the delete action
Then the accession is deleted
Scenario: Cancel accession delete from the view page
Given an accession has been created
And the user is on the accession details page
When the user clicks on Delete
When the user clicks on Cancel
When the user clicks on 'Delete'
When the user clicks on 'Cancel'
Then the accession is not deleted
6 changes: 3 additions & 3 deletions staff-features/accessions/accessions_search.feature
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ Feature: Accessions Search
Given the user is logged in as an administrator
Scenario: Search accession by title
Given an accession has been created
When the user clicks on Browse
And the user clicks on Accessions
When the user clicks on 'Browse'
And the user clicks on 'Accessions'
And the user searches for the accession title
Then the accession is in the search results
Scenario: Sort accessions by title
Given two accessions have been created
And the accessions are on the search results sorted by ascending title
When the user clicks on Title
When the user clicks on 'Title'
Then the accessions are sorted by descending title
Scenario: View accession
Given an accession has been created
Expand Down
4 changes: 2 additions & 2 deletions staff-features/digital-objects/digital_object_create.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ Feature: Create Digital Object
Given the user is on the New Digital Object page
When the user fills in Title with a unique id
And the user fills in Identifier with a unique id
And the user clicks on Save
And the user clicks on 'Save'
Then the digital object is created
Scenario: Digital Object is not created because required fields are missing
Given the user is on the New Digital Object page
When the user clicks on Save
When the user clicks on 'Save'
Then the following error messages are displayed:
| Title - Property is required but was missing |
| Identifier - Property is required but was missing |
Expand Down
12 changes: 6 additions & 6 deletions staff-features/repositories/repository_create.feature
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
Feature: Create repository
Scenario: Repository is created from an admin user
Given the user is logged in as an administrator
When the user clicks on System
And the user clicks on Manage Repositories
And the user clicks on Create Repository
When the user clicks on 'System'
And the user clicks on 'Manage Repositories'
And the user clicks on 'Create Repository'
And the user fills in the Repository Short Name
And the user fills in the Repository Name
And the user clicks on Save
Then the message "Repository Created" is displayed
And the user clicks on 'Save'
Then the message 'Repository Created' is displayed
And the repository is created
Scenario: Repository is not created from a view-only user
Given the user is logged in as a view-only user
When the user clicks on System
When the user clicks on 'System'
Then the Manage Repositories button should not be in the dropdown menu
4 changes: 2 additions & 2 deletions staff-features/resources/update_basic_information.feature
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Feature: Update Resource Basic Information
When the user checks Publish?
When the user checks Restrictions Apply?
When the user fills in Repository Processing Note with "Repository Processing Note"
When the user clicks on Save Resource
When the user clicks on 'Save Resource'
Then the resource is updated
Then Resource Type has value Records
Then Publish? is checked
Expand All @@ -18,6 +18,6 @@ Feature: Update Resource Basic Information
Given the user is on the resource edit page
When the user changes the resource Title
When the user changes the resource Identifier
When the user clicks on Revert Changes
When the user clicks on 'Revert Changes'
Then the resource Title does not change
Then the resource Identifier does not change
56 changes: 2 additions & 54 deletions staff-features/shared/step_definitions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,60 +40,8 @@
click_on 'Sign In'
end

When 'the user clicks on Delete' do
click_on_string 'Delete'
end

When 'the user clicks on Cancel' do
click_on_string 'Cancel'
end

When 'the user clicks on Delete Records' do
click_on_string 'Delete Records'
end

When 'the user clicks on Browse' do
click_on_string 'Browse'
end

When 'the user clicks on Accessions' do
click_on_string 'Accessions'
end

When 'the user clicks on System' do
click_on_string 'System'
end

When 'the user clicks on Manage Repositories' do
click_on_string 'Manage Repositories'
end

When 'the user clicks on Create Repository' do
click_on_string 'Create Repository'
end

When 'the user clicks on Save' do
click_on_string 'Save'
end

When 'the user clicks on Save Resource' do
click_on_string 'Save Resource'
end

When 'the user clicks on Revert Changes' do
click_on_string 'Revert Changes'
end

When 'the user clicks on Create User' do
click_on_string 'Create User'
end

When 'the user clicks on Create Account' do
click_on_string 'Create Account'
end

When 'the user clicks on Title' do
click_on_string 'Title'
When 'the user clicks on {string}' do |string|
click_on_string string
end

When 'the user fills in {string} with {string}' do |label, value|
Expand Down
8 changes: 4 additions & 4 deletions staff-features/users/user_create.feature
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ Feature: Create User
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 '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
And the user clicks on 'Create Account'
Then the message "User Created" 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
And the user clicks on Create Account
When 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 |
| Full name - Property is required but was missing |
Expand Down
Loading