Commit 7d134ca 1 parent a3c6367 commit 7d134ca Copy full SHA for 7d134ca
File tree 8 files changed +13
-24
lines changed
8 files changed +13
-24
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ Feature: Accession Create
5
5
Given the user is on the New Accession page
6
6
When the user fills in Identifier
7
7
And the user clicks on 'Save'
8
- Then the message " Accession created" is displayed
8
+ Then the ' Accession created' message is displayed
9
9
Scenario : Accession is not created
10
10
Given the user is on the New Accession page
11
11
When the user clicks on 'Save'
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ Feature: Accession Delete
7
7
When the user clicks on the checkbox of the accession
8
8
And the user clicks on 'Delete'
9
9
And the user clicks on 'Delete Records'
10
- And the message 'Records deleted' is displayed
11
- And the message 'No records found' is displayed
10
+ And the 'Records deleted' message is displayed
11
+ And the 'No records found' message is displayed
12
12
Scenario : Accession is deleted from the view page
13
13
Given an accession has been created
14
14
And the user is on the accession details page
Original file line number Diff line number Diff line change 7
7
click_on 'Accession'
8
8
end
9
9
10
- When 'the user fills in Identifier' do
11
- fill_in 'Identifier' , with : @uuid
12
- end
13
-
14
10
Then ( 'a new accession is created' ) do
15
11
expect ( find ( 'h2' ) . text ) . to eq "Accession #{ @uuid } Accession"
16
12
expect ( find ( '.alert.alert-success.with-hide-alert' ) . text ) . to eq 'Accession created'
Original file line number Diff line number Diff line change @@ -3,10 +3,10 @@ Feature: Create Digital Object
3
3
Given the user is logged in as an administrator
4
4
Scenario : Digital Object is created
5
5
Given the user is on the New Digital Object page
6
- When the user fills in Title with a unique id
7
- And the user fills in Identifier with a unique id
6
+ When the user fills in ' Title' with 'Alabama: Mobile: Government Street [Cochran photos]'
7
+ And the user fills in Identifier
8
8
And the user clicks on 'Save'
9
- Then the digital object is created
9
+ Then the Digital Object created success message is displayed
10
10
Scenario : Digital Object is not created because required fields are missing
11
11
Given the user is on the New Digital Object page
12
12
When the user clicks on 'Save'
Original file line number Diff line number Diff line change 10
10
fill_in 'Title' , with : "Digital Object Title #{ @uuid } "
11
11
end
12
12
13
- When ( 'the user fills in Identifier with a unique id' ) do
14
- fill_in 'Identifier' , with : @uuid
15
- end
16
-
17
- Then ( 'the digital object is created' ) do
18
- expect ( find ( 'h2' ) . text ) . to eq "Digital Object Title #{ @uuid } Digital Object"
19
- expect ( find ( '.alert.alert-success.with-hide-alert' ) . text ) . to eq "Digital Object Digital Object Title #{ @uuid } Created"
20
-
21
- expect_record_to_be_in_search_results ( @uuid )
13
+ Then ( 'the Digital Object created success message is displayed' ) do
14
+ expect ( find ( '.alert.alert-success.with-hide-alert' ) . text ) . to match /^Digital Object.*Created$/
22
15
end
23
16
24
17
Then ( 'the digital object is not created' ) do
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ Feature: Create repository
7
7
And the user fills in the Repository Short Name
8
8
And the user fills in the Repository Name
9
9
And the user clicks on 'Save'
10
- Then the message 'Repository Created' is displayed
10
+ Then the 'Repository Created' message is displayed
11
11
And the repository is created
12
12
Scenario : Repository is not created from a view-only user
13
13
Given the user is logged in as a view-only user
Original file line number Diff line number Diff line change 44
44
click_on_string string
45
45
end
46
46
47
- When 'the user fills in {string} with {string} ' do | label , value |
48
- fill_in label , with : value
47
+ When 'the user fills in Identifier ' do
48
+ fill_in 'Identifier' , with : @uuid
49
49
end
50
50
51
51
When 'the user fills in {string} with {string}' do |label , value |
56
56
select option , from : label
57
57
end
58
58
59
- Then 'the message {string} is displayed' do |string |
59
+ Then 'the {string} message is displayed' do |string |
60
60
expect ( page ) . to have_text string
61
61
end
62
62
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ Feature: Create User
9
9
And the user fills in the Password
10
10
And the user fills in the Confirm password
11
11
And the user clicks on 'Create Account'
12
- Then the message " User Created" is displayed
12
+ Then the ' User Created' message is displayed
13
13
And the new user should appear in the search results
14
14
Scenario : User is not created because required fields are missing
15
15
Given the user is on the Manage Users page
You can’t perform that action at this time.
0 commit comments