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
Jérome Perrin
gitlab-ce
Commits
8ed25c80
Commit
8ed25c80
authored
Feb 10, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added tests
parent
216d3ad7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
spec/features/boards/add_issues_modal_spec.rb
spec/features/boards/add_issues_modal_spec.rb
+6
-0
spec/features/boards/boards_spec.rb
spec/features/boards/boards_spec.rb
+2
-2
No files found.
spec/features/boards/add_issues_modal_spec.rb
View file @
8ed25c80
...
@@ -49,6 +49,12 @@ describe 'Issue Boards add issue modal', :feature, :js do
...
@@ -49,6 +49,12 @@ describe 'Issue Boards add issue modal', :feature, :js do
expect
(
page
).
not_to
have_selector
(
'.add-issues-modal'
)
expect
(
page
).
not_to
have_selector
(
'.add-issues-modal'
)
end
end
it
'does not show tooltip on add issues button'
do
button
=
page
.
find
(
'.issue-boards-search button'
,
text:
'Add issues'
)
expect
(
button
[
:title
]).
not_to
eq
(
"Please add a list to your board first"
)
end
end
end
context
'issues list'
do
context
'issues list'
do
...
...
spec/features/boards/boards_spec.rb
View file @
8ed25c80
...
@@ -28,10 +28,10 @@ describe 'Issue Boards', feature: true, js: true do
...
@@ -28,10 +28,10 @@ describe 'Issue Boards', feature: true, js: true do
expect
(
page
).
to
have_content
(
'Welcome to your Issue Board!'
)
expect
(
page
).
to
have_content
(
'Welcome to your Issue Board!'
)
end
end
it
'
disables add issues button by default
'
do
it
'
shows tooltip on add issues button
'
do
button
=
page
.
find
(
'.issue-boards-search button'
,
text:
'Add issues'
)
button
=
page
.
find
(
'.issue-boards-search button'
,
text:
'Add issues'
)
expect
(
button
[
:
disabled
]).
to
eq
true
expect
(
button
[
:
"data-original-title"
]).
to
eq
(
"Please add a list to your board first"
)
end
end
it
'hides the blank state when clicking nevermind button'
do
it
'hides the blank state when clicking nevermind button'
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