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
8a2ecebe
Commit
8a2ecebe
authored
Jan 27, 2017
by
Douglas Barbosa Alexandre
Committed by
Fatih Acet
Feb 03, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix feature spec to create new issue on issue boards
parent
a3edd5f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
spec/features/boards/new_issue_spec.rb
spec/features/boards/new_issue_spec.rb
+3
-2
No files found.
spec/features/boards/new_issue_spec.rb
View file @
8a2ecebe
...
@@ -6,6 +6,7 @@ describe 'Issue Boards new issue', feature: true, js: true do
...
@@ -6,6 +6,7 @@ describe 'Issue Boards new issue', feature: true, js: true do
let
(
:project
)
{
create
(
:empty_project
,
:public
)
}
let
(
:project
)
{
create
(
:empty_project
,
:public
)
}
let
(
:board
)
{
create
(
:board
,
project:
project
)
}
let
(
:board
)
{
create
(
:board
,
project:
project
)
}
let!
(
:list
)
{
create
(
:list
,
board:
board
,
position:
0
)
}
let
(
:user
)
{
create
(
:user
)
}
let
(
:user
)
{
create
(
:user
)
}
context
'authorized user'
do
context
'authorized user'
do
...
@@ -17,7 +18,7 @@ describe 'Issue Boards new issue', feature: true, js: true do
...
@@ -17,7 +18,7 @@ describe 'Issue Boards new issue', feature: true, js: true do
visit
namespace_project_board_path
(
project
.
namespace
,
project
,
board
)
visit
namespace_project_board_path
(
project
.
namespace
,
project
,
board
)
wait_for_vue_resource
wait_for_vue_resource
expect
(
page
).
to
have_selector
(
'.board'
,
count:
3
)
expect
(
page
).
to
have_selector
(
'.board'
,
count:
2
)
end
end
it
'displays new issue button'
do
it
'displays new issue button'
do
...
@@ -25,7 +26,7 @@ describe 'Issue Boards new issue', feature: true, js: true do
...
@@ -25,7 +26,7 @@ describe 'Issue Boards new issue', feature: true, js: true do
end
end
it
'does not display new issue button in done list'
do
it
'does not display new issue button in done list'
do
page
.
within
(
'.board:nth-child(
3
)'
)
do
page
.
within
(
'.board:nth-child(
2
)'
)
do
expect
(
page
).
not_to
have_selector
(
'.board-issue-count-holder .btn'
)
expect
(
page
).
not_to
have_selector
(
'.board-issue-count-holder .btn'
)
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