test_support/features/contributor_add.feature in hydra-head-3.0.0pre3 vs test_support/features/contributor_add.feature in hydra-head-3.0.0pre4
- old
+ new
@@ -8,32 +8,37 @@
# This error only occurs in cucumber, not in real browser testing.
@nojs
Scenario: Add a person without javascript
Given I am logged in as "archivist1@example.com"
- And I am on the edit document page for hydrangea:fixture_mods_article1
- When I follow "Add a Person"
- And I fill in the following:
- | Computing ID | 098556 |
- | First Name | Myra |
- | Last Name | Breckenridge |
- | Department | Posture and Empathy |
- | Institution | Academy for Aspiring Young Actors and Actresses |
- # And I press "Add Person"
+ #When I am on the edit document page for hydrangea:fixture_mods_article1
+ When I am on the edit contributor page for hydrangea:fixture_mods_article1
+ And I press "Add Another Author"
+# When I fill in the following:
+ Then I fill in "person_2_computing_id" with "098556"
+ And I fill in "person_2_first_name" with "Myra"
+ And I fill in "person_2_last_name" with "Breckenridge"
+ And I fill in "person_2_description" with "Posture and Empathy"
+ And I fill in "person_2_institution" with "Academy for Aspiring Young Actors and Actresses"
+ And I press "Continue"
+ Then I should see "Your changes have been saved."
+ And I should see "Breckenridge"
+# Then I should see "The First and Last names are required for all authors."
# Then I should be on the edit document page for hydrus:test_object1
# And the following should contain:
# | Computing ID | 098556 |
# | First Name | Myra |
# | Last Name | Breckenridge |
# | Department | Posture and Empathy |
# | Institution | Academy for Aspiring Young Actors and Actresses |
-
- @nojs
- Scenario: Add an organization without javascript
- Given I am logged in as "archivist1@example.com"
- And I am on the edit document page for hydrangea:fixture_mods_article1
- When I follow "Add an Organization"
- And I fill in "Organization" with "American Film Academy"
+
+ # need to figure out the deal w/ organizations. Not in spec.
+# @nojs
+# Scenario: Add an organization without javascript
+# Given I am logged in as "archivist1@example.com"
+# And I am on the edit document page for hydrangea:fixture_mods_article1
+# When I follow "Add an Organization"
+# And I fill in "Organization" with "American Film Academy"
# And I press "Add Organization"
# Then I should be on the edit document page for hydrus:test_object1
# And the "Organization" field should contain "American Film Academy"
\ No newline at end of file