Commit 7caae0a 1 parent e9f2528 commit 7caae0a Copy full SHA for 7caae0a
File tree 2 files changed +24
-0
lines changed
2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change
1
+ # frozen_string_literal: true
2
+
3
+ Given 'the user is on the New Subject page' do
4
+ visit "#{ STAFF_URL } /subjects/new"
5
+
6
+ wait_for_ajax
7
+ end
Original file line number Diff line number Diff line change
1
+ Feature : Subject Create
2
+ Background :
3
+ Given an administrator user is logged in
4
+ Scenario : Subject is created
5
+ Given the user is on the New Subject page
6
+ When the user selects 'Art & Architecture Thesaurus' from 'Source' in the 'Basic Information' form
7
+ And the user fills in 'Term'
8
+ And the user selects 'Topical' from 'Type' in the 'Terms and Subdivisions' form
9
+ And the user clicks on 'Save'
10
+ Then the 'Subject' created message is displayed
11
+ Scenario : Subject is not created because required fields are missing
12
+ Given the user is on the New Subject page
13
+ When the user clicks on 'Save'
14
+ Then the following error messages are displayed
15
+ | Term - Property is required but was missing |
16
+ | Type - Property is required but was missing |
17
+ | Source - Property is required but was missing |
You can’t perform that action at this time.
0 commit comments