Skip to content

Commit

Permalink
Update formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
blacksmith-welder committed Aug 28, 2024
1 parent 5f7c1f7 commit 8e8effb
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 15 deletions.
2 changes: 1 addition & 1 deletion staff-features/accessions/accession_create.feature
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Feature: Accession Create
Background:
Given the user is logged in as admin
Given I am logged in as an admin user
Scenario: Accession is successfully created
Given the web browser is on the create accession page
When the user fills in all the required fields
Expand Down
3 changes: 0 additions & 3 deletions staff-features/accessions/accession_delete.feature
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
Feature: Accession Delete
Background:
Given I am logged in as an admin user

Scenario: Delete an accession from the search results
Given an accession has been created
When the accession is in the search results
Expand All @@ -10,14 +9,12 @@ Feature: Accession Delete
And I click on "Delete Records"
And the message "Records deleted" is displayed
And the message "No records found" is displayed

Scenario: Delete an accession from the view page
Given an accession has been created
And I am in the accession details page
When I click on "Delete"
And I confirm the delete action
Then the accession is successfully deleted

Scenario: Cancel delete from the view page
Given an accession has been created
And I am in the accession details page
Expand Down
3 changes: 0 additions & 3 deletions staff-features/accessions/accessions_search.feature
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
Feature: Accessions Search
Background:
Given I am logged in as an admin user

Scenario: Search accession by title
Given an accession has been created
When I click on "Browse"
And I click on "Accessions"
And I search 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 I click on "Title"
Then the accessions are sorted by descending title

Scenario: View accession
Given an accession has been created
When the accession is in the search results
Expand Down
2 changes: 0 additions & 2 deletions staff-features/repositories/repository_create.feature
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Feature: Repository management - Create repository

Scenario: Successfully create a repository
Given I am logged in as an admin user
When I click on "System"
Expand All @@ -10,7 +9,6 @@ Feature: Repository management - Create repository
And I click on "Save"
Then the message "Repository Created" is displayed
And the new repository should be appeared in the list of repositories

Scenario: View-only user cannot create a repository
Given I am signed in as a view-only user
When I click on "System"
Expand Down
4 changes: 0 additions & 4 deletions staff-features/shared/step_definitions.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# frozen_string_literal: true

Given 'the user is logged in as admin' do
login_admin
end

Given 'I am logged in as an admin user' do
login_admin
end
Expand Down
2 changes: 0 additions & 2 deletions staff-features/users/user_create.feature
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
Feature: User Management - Create User
Background:
Given I am logged in as an admin user

Scenario: User is successfully created
Given I am on the Manage Users page
When I click on "Create User"
Expand All @@ -12,7 +11,6 @@ Feature: User Management - Create User
And I click on "Create Account"
Then the message "User Created" is displayed
And the new user should appear in the search results

Scenario: Fail to create a user due to missing required fields
Given I am on the Manage Users page
When I click on "Create User"
Expand Down

0 comments on commit 8e8effb

Please sign in to comment.