@@ -33,18 +33,22 @@ Feature: Edit Project
33
33
When I click "Back"
34
34
Then I should be on the "Show" page for project "hello mars"
35
35
36
+ @javascript
36
37
Scenario : Updating a project: success
37
38
Given I have logged in
38
39
And I am on the "Edit" page for project "hello mars"
39
40
And I fill in "Description" with "Hello, Uranus!"
41
+ And I click "Add more repos"
40
42
And I fill in "GitHub url (primary)" with "https://github.com/google/instant-hangouts"
41
43
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"
42
45
And I click the "Submit" button
43
46
Then I should be on the "Show" page for project "hello mars"
44
47
And I should see a success flash "Project was successfully updated."
45
48
And I should see "Hello, Uranus!"
46
49
And I should see a link to "hello mars" on github
47
50
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"
48
52
49
53
Scenario : Saving a project: failure
50
54
Given I have logged in
@@ -53,9 +57,11 @@ Feature: Edit Project
53
57
And I click the "Submit" button
54
58
Then I should see "Project was not updated."
55
59
60
+ @javascript
56
61
Scenario : Update GitHub url if valid
57
62
Given I have logged in
58
63
And I am on the "Edit" page for project "hello mars"
64
+ And I click "Add more repos"
59
65
And I fill in "GitHub url (primary)" with "https://github.com/google/instant-hangouts"
60
66
And I click the "Submit" button
61
67
Then I should be on the "Show" page for project "hello mars"
@@ -69,9 +75,11 @@ Feature: Edit Project
69
75
Then I should be on the "Show" page for project "hello mars"
70
76
And I should see a link to "hello mars" on Pivotal Tracker
71
77
78
+ @javascript
72
79
Scenario : Reject GitHub url update if invalid
73
80
Given I have logged in
74
81
And I am on the "Edit" page for project "hello mars"
82
+ And I click "Add more repos"
75
83
And I fill in "GitHub url (primary)" with "https:/github.com/google/instant-hangouts"
76
84
And I click the "Submit" button
77
85
Then I should see "Project was not updated."
0 commit comments