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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
78e3ff13
Commit
78e3ff13
authored
Feb 13, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed up specs
parent
3c4ff902
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
11 deletions
+16
-11
spec/features/boards/add_issues_modal_spec.rb
spec/features/boards/add_issues_modal_spec.rb
+11
-5
spec/features/boards/backlog_help_spec.rb
spec/features/boards/backlog_help_spec.rb
+5
-6
No files found.
spec/features/boards/add_issues_modal_spec.rb
View file @
78e3ff13
...
...
@@ -25,13 +25,13 @@ describe 'Issue Boards add issue modal', :feature, :js do
context
'modal interaction'
do
it
'opens modal'
do
click_
button
(
'Add issues'
)
click_
add_issues
expect
(
page
).
to
have_selector
(
'.add-issues-modal'
)
end
it
'closes modal'
do
click_
button
(
'Add issues'
)
click_
add_issues
page
.
within
(
'.add-issues-modal'
)
do
find
(
'.close'
).
click
...
...
@@ -41,7 +41,7 @@ describe 'Issue Boards add issue modal', :feature, :js do
end
it
'closes modal if cancel button clicked'
do
click_
button
(
'Add issues'
)
click_
add_issues
page
.
within
(
'.add-issues-modal'
)
do
click_button
'Cancel'
...
...
@@ -53,7 +53,7 @@ describe 'Issue Boards add issue modal', :feature, :js do
context
'issues list'
do
before
do
click_
button
(
'Add issues'
)
click_
add_issues
wait_for_vue_resource
end
...
...
@@ -86,7 +86,7 @@ describe 'Issue Boards add issue modal', :feature, :js do
first
(
'.board-delete'
).
click
click_
button
(
'Add issues'
)
click_
add_issues
wait_for_vue_resource
...
...
@@ -230,4 +230,10 @@ describe 'Issue Boards add issue modal', :feature, :js do
end
end
end
def
click_add_issues
page
.
within
(
'.issue-boards-search'
)
do
click_button
(
'Add issues'
)
end
end
end
spec/features/boards/backlog_help_spec.rb
View file @
78e3ff13
...
...
@@ -6,6 +6,7 @@ describe 'Issue Boards', :feature, :js do
let
(
:project
)
{
create
(
:empty_project
,
:public
)
}
let
(
:board
)
{
create
(
:board
,
project:
project
)
}
let
(
:user
)
{
create
(
:user
)
}
let!
(
:issue
)
{
create
(
:issue
,
project:
project
)
}
let!
(
:planning
)
{
create
(
:label
,
project:
project
,
name:
'Planning'
)
}
let!
(
:list1
)
{
create
(
:list
,
board:
board
,
label:
planning
,
position:
0
)
}
...
...
@@ -30,17 +31,15 @@ describe 'Issue Boards', :feature, :js do
expect
(
page
).
not_to
have_selector
(
'.boards-backlog-help'
)
end
it
'closes backlog help box
when clicking add issues button inside box
'
do
it
'closes backlog help box
after adding issues
'
do
page
.
within
'.boards-backlog-help'
do
click_button
'Add issues'
end
expect
(
page
).
not_to
have_selector
(
'.boards-backlog-help'
)
end
page
.
within
(
'.add-issues-modal'
)
do
find
(
'.card'
).
click
it
'closes backlog help box when clicking add issues button'
do
page
.
within
'.issue-boards-search'
do
click_button
'Add issues'
click_button
'Add 1 issue'
end
expect
(
page
).
not_to
have_selector
(
'.boards-backlog-help'
)
...
...
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