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
b602023e
Commit
b602023e
authored
Oct 07, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added tests for showing sidebar when new issue is saved
parent
e4571614
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
0 deletions
+29
-0
new_issue_spec.rb
spec/features/boards/new_issue_spec.rb
+15
-0
sidebar_spec.rb
spec/features/boards/sidebar_spec.rb
+14
-0
No files found.
spec/features/boards/new_issue_spec.rb
View file @
b602023e
...
...
@@ -65,6 +65,21 @@ describe 'Issue Boards new issue', feature: true, js: true do
expect
(
page
).
to
have_content
(
'1'
)
end
end
it
'shows sidebar when creating new issue'
do
page
.
within
(
first
(
'.board'
))
do
find
(
'.board-issue-count-holder .btn'
).
click
end
page
.
within
(
first
(
'.board-new-issue-form'
))
do
find
(
'.form-control'
).
set
(
'bug'
)
click_button
'Submit issue'
end
wait_for_vue_resource
expect
(
page
).
to
have_selector
(
'.issue-boards-sidebar'
)
end
end
context
'unauthorized user'
do
...
...
spec/features/boards/sidebar_spec.rb
View file @
b602023e
...
...
@@ -294,4 +294,18 @@ describe 'Issue Boards', feature: true, js: true do
end
end
end
context
'subscription'
do
it
'changes issue subscription'
do
page
.
within
(
first
(
'.board'
))
do
first
(
'.card'
).
click
end
page
.
within
(
'.subscription'
)
do
click_button
'Subscribe'
expect
(
page
).
to
have_content
(
"You're receiving notifications because you're subscribed to this thread."
)
end
end
end
end
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