BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
bd2e524f
Unverified
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
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
issues.feature
features/project/issues/issues.feature
+1
-1
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
Given
project
"Shop"
have
"Release 0.4"
open issue
When
I visit issue page
"Release 0.4"
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
@javascript
...
...
features/steps/project/issues/issues.rb
View file @
bd2e524f
...
...
@@ -21,20 +21,20 @@ class Spinach::Features::ProjectIssues < Spinach::FeatureSteps
step
'I should see that I am subscribed'
do
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
step
'I should see that I am unsubscribed'
do
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
step
'I click link "Closed"'
do
find
(
'.issues-state-filters [data-state="closed"] span'
,
text:
'Closed'
).
click
end
step
'I click
button "Unsubscribe"
'
do
click_on
"Unsubscribe"
step
'I click
the subscription toggle
'
do
find
(
'.js-issuable-subscribe-button button'
).
click
end
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