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
4fb94a83
Commit
4fb94a83
authored
Oct 11, 2016
by
Phil Hughes
Committed by
Douglas Barbosa Alexandre
Oct 18, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a few tests for multiple boards
parent
ebb883e0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
93 additions
and
3 deletions
+93
-3
app/views/projects/boards/_title.html.haml
app/views/projects/boards/_title.html.haml
+3
-3
spec/features/boards/multiple_boards_spec.rb
spec/features/boards/multiple_boards_spec.rb
+90
-0
No files found.
app/views/projects/boards/_title.html.haml
View file @
4fb94a83
...
@@ -52,11 +52,11 @@
...
@@ -52,11 +52,11 @@
.dropdown-footer
{
"v-if"
=>
"currentPage === ''"
}
.dropdown-footer
{
"v-if"
=>
"currentPage === ''"
}
%ul
.dropdown-footer-list
%ul
.dropdown-footer-list
%li
%li
%a
{
"@click.stop.prevent"
=>
"showPage('new')"
}
%a
{
"
href"
:
"#"
,
"
@click.stop.prevent"
=>
"showPage('new')"
}
Create new board
Create new board
%li
%li
%a
{
"@click.stop.prevent"
=>
"showPage('edit')"
}
%a
{
"
href"
:
"#"
,
"
@click.stop.prevent"
=>
"showPage('edit')"
}
Edit board name
Edit board name
%li
{
"v-if"
=>
"showDelete"
}
%li
{
"v-if"
=>
"showDelete"
}
%a
.text-danger
{
"@click.stop.prevent"
=>
"showPage('delete')"
}
%a
.text-danger
{
"
href"
:
"#"
,
"
@click.stop.prevent"
=>
"showPage('delete')"
}
Delete board
Delete board
spec/features/boards/multiple_boards_spec.rb
0 → 100644
View file @
4fb94a83
require
'rails_helper'
describe
'Multiple Issue Boards'
,
feature:
true
,
js:
true
do
include
WaitForAjax
include
WaitForVueResource
let
(
:user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:empty_project
,
:public
)
}
let!
(
:board
)
{
create
(
:board
,
project:
project
)
}
let!
(
:board2
)
{
create
(
:board
,
project:
project
)
}
before
do
project
.
team
<<
[
user
,
:master
]
login_as
(
user
)
visit
namespace_project_boards_path
(
project
.
namespace
,
project
)
wait_for_vue_resource
end
it
'shows current board name'
do
page
.
within
(
'.boards-switcher'
)
do
expect
(
page
).
to
have_content
(
board
.
name
)
end
end
it
'shows a list of boards'
do
click_button
board
.
name
page
.
within
(
'.boards-title-holder .dropdown-menu'
)
do
expect
(
page
).
to
have_content
(
board
.
name
)
expect
(
page
).
to
have_content
(
board2
.
name
)
end
end
it
'switches current board'
do
click_button
board
.
name
page
.
within
(
'.boards-title-holder .dropdown-menu'
)
do
click_link
board2
.
name
end
wait_for_vue_resource
page
.
within
(
'.boards-switcher'
)
do
expect
(
page
).
to
have_content
(
board2
.
name
)
end
end
it
'edits board name'
do
click_button
board
.
name
page
.
within
(
'.boards-title-holder .dropdown-menu'
)
do
click_link
'Edit board name'
fill_in
'board-new-name'
,
with:
'Testing'
click_button
'Save'
end
wait_for_vue_resource
page
.
within
(
'.boards-title-holder .dropdown-menu'
)
do
expect
(
page
).
to
have_content
(
'Testing'
)
end
end
it
'deletes board'
do
click_button
board
.
name
wait_for_vue_resource
page
.
within
(
'.boards-title-holder .dropdown-menu'
)
do
click_link
'Delete board'
page
.
within
(
'.dropdown-title'
)
do
expect
(
page
).
to
have_content
(
'Delete board'
)
end
click_link
'Delete'
end
click_button
board
.
name
page
.
within
(
'.boards-title-holder .dropdown-menu'
)
do
expect
(
page
).
not_to
have_content
(
board
.
name
)
expect
(
page
).
to
have_content
(
board2
.
name
)
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