@@ -33,18 +33,22 @@ Feature: Edit Project
3333 When I click "Back"
3434 Then I should be on the "Show" page for project "hello mars"
3535
36+ @javascript
3637 Scenario : Updating a project: success
3738 Given I have logged in
3839 And I am on the "Edit" page for project "hello mars"
3940 And I fill in "Description" with "Hello, Uranus!"
41+ And I click "Add more repos"
4042 And I fill in "GitHub url (primary)" with "https://github.com/google/instant-hangouts"
4143 And I fill in "Issue Tracker link" with "https://www.pivotaltracker.com/s/projects/853345"
44+ And I fill in "Slack channel name" with "slackin"
4245 And I click the "Submit" button
4346 Then I should be on the "Show" page for project "hello mars"
4447 And I should see a success flash "Project was successfully updated."
4548 And I should see "Hello, Uranus!"
4649 And I should see a link to "hello mars" on github
4750 And I should see a link to "hello mars" on Pivotal Tracker
51+ And I should see a link to the slack channel for "hello mars"
4852
4953 Scenario : Saving a project: failure
5054 Given I have logged in
@@ -53,9 +57,11 @@ Feature: Edit Project
5357 And I click the "Submit" button
5458 Then I should see "Project was not updated."
5559
60+ @javascript
5661 Scenario : Update GitHub url if valid
5762 Given I have logged in
5863 And I am on the "Edit" page for project "hello mars"
64+ And I click "Add more repos"
5965 And I fill in "GitHub url (primary)" with "https://github.com/google/instant-hangouts"
6066 And I click the "Submit" button
6167 Then I should be on the "Show" page for project "hello mars"
@@ -69,9 +75,11 @@ Feature: Edit Project
6975 Then I should be on the "Show" page for project "hello mars"
7076 And I should see a link to "hello mars" on Pivotal Tracker
7177
78+ @javascript
7279 Scenario : Reject GitHub url update if invalid
7380 Given I have logged in
7481 And I am on the "Edit" page for project "hello mars"
82+ And I click "Add more repos"
7583 And I fill in "GitHub url (primary)" with "https:/github.com/google/instant-hangouts"
7684 And I click the "Submit" button
7785 Then I should see "Project was not updated."
0 commit comments