Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
bd2e524f
Commit
bd2e524f
authored
Jan 12, 2018
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update spinach test for subscription toggle
parent
d77d1749
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
features/project/issues/issues.feature
features/project/issues/issues.feature
+1
-1
features/steps/project/issues/issues.rb
features/steps/project/issues/issues.rb
+4
-4
No files found.
features/project/issues/issues.feature
View file @
bd2e524f
...
@@ -164,7 +164,7 @@ Feature: Project Issues
...
@@ -164,7 +164,7 @@ Feature: Project Issues
Given
project
"Shop"
have
"Release 0.4"
open issue
Given
project
"Shop"
have
"Release 0.4"
open issue
When
I visit issue page
"Release 0.4"
When
I visit issue page
"Release 0.4"
Then
I should see that I am subscribed
Then
I should see that I am subscribed
When
I click
button
"Unsubscribe"
When
I click
the subscription toggle
Then
I should see that I am unsubscribed
Then
I should see that I am unsubscribed
@javascript
@javascript
...
...
features/steps/project/issues/issues.rb
View file @
bd2e524f
...
@@ -21,20 +21,20 @@ class Spinach::Features::ProjectIssues < Spinach::FeatureSteps
...
@@ -21,20 +21,20 @@ class Spinach::Features::ProjectIssues < Spinach::FeatureSteps
step
'I should see that I am subscribed'
do
step
'I should see that I am subscribed'
do
wait_for_requests
wait_for_requests
expect
(
find
(
'.js-issuable-subscribe-button
span'
)).
to
have_content
'Unsubscribe
'
expect
(
find
(
'.js-issuable-subscribe-button
'
)).
to
have_css
'button.is-checked
'
end
end
step
'I should see that I am unsubscribed'
do
step
'I should see that I am unsubscribed'
do
wait_for_requests
wait_for_requests
expect
(
find
(
'.js-issuable-subscribe-button
span'
)).
to
have_content
'Subscribe
'
expect
(
find
(
'.js-issuable-subscribe-button
'
)).
to
have_css
'button:not(.is-checked)
'
end
end
step
'I click link "Closed"'
do
step
'I click link "Closed"'
do
find
(
'.issues-state-filters [data-state="closed"] span'
,
text:
'Closed'
).
click
find
(
'.issues-state-filters [data-state="closed"] span'
,
text:
'Closed'
).
click
end
end
step
'I click
button "Unsubscribe"
'
do
step
'I click
the subscription toggle
'
do
click_on
"Unsubscribe"
find
(
'.js-issuable-subscribe-button button'
).
click
end
end
step
'I should see "Release 0.3" in issues'
do
step
'I should see "Release 0.3" in issues'
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment