Skip to content

Commit 7caae0a

Browse files
authored
Subject Create (#74)
1 parent e9f2528 commit 7caae0a

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
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 numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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 |

0 commit comments

Comments
 (0)