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
4ec32ad0
Commit
4ec32ad0
authored
Oct 08, 2019
by
Walmyr Lima e Silva Filho
Committed by
Dan Davison
Oct 08, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test for configurable issue board
parent
bb18b759
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
0 deletions
+41
-0
app/assets/javascripts/vue_shared/components/deprecated_modal.vue
...ts/javascripts/vue_shared/components/deprecated_modal.vue
+1
-0
qa/qa/ee/page/project/issue/board/show.rb
qa/qa/ee/page/project/issue/board/show.rb
+9
-0
qa/qa/specs/features/ee/browser_ui/2_plan/issue_boards/configurable_issue_board_spec.rb
...r_ui/2_plan/issue_boards/configurable_issue_board_spec.rb
+31
-0
No files found.
app/assets/javascripts/vue_shared/components/deprecated_modal.vue
View file @
4ec32ad0
...
@@ -132,6 +132,7 @@ export default {
...
@@ -132,6 +132,7 @@ export default {
type=
"button"
type=
"button"
class=
"btn js-primary-button"
class=
"btn js-primary-button"
data-dismiss=
"modal"
data-dismiss=
"modal"
data-qa-selector=
"save_changes_button"
@
click=
"emitSubmit($event)"
@
click=
"emitSubmit($event)"
>
>
{{
primaryButtonLabel
}}
{{
primaryButtonLabel
}}
...
...
qa/qa/ee/page/project/issue/board/show.rb
View file @
4ec32ad0
...
@@ -23,6 +23,10 @@ module QA
...
@@ -23,6 +23,10 @@ module QA
element
:boards_dropdown
element
:boards_dropdown
end
end
view
'app/assets/javascripts/vue_shared/components/deprecated_modal.vue'
do
element
:save_changes_button
end
view
'app/views/shared/boards/_show.html.haml'
do
view
'app/views/shared/boards/_show.html.haml'
do
element
:boards_list
element
:boards_list
end
end
...
@@ -95,6 +99,11 @@ module QA
...
@@ -95,6 +99,11 @@ module QA
has_element?
(
:board_name_field
,
wait:
1
)
has_element?
(
:board_name_field
,
wait:
1
)
end
end
def
set_name
(
name
)
find_element
(
:board_name_field
).
set
(
name
)
click_element
(
:save_changes_button
)
end
private
private
def
wait_boards_list_finish_loading
def
wait_boards_list_finish_loading
...
...
qa/qa/specs/features/ee/browser_ui/2_plan/issue_boards/configurable_issue_board_spec.rb
0 → 100644
View file @
4ec32ad0
# frozen_string_literal: true
module
QA
context
'Plan'
do
describe
'Configurable issue board'
do
let
(
:label_board_list
)
do
EE
::
Resource
::
Board
::
BoardList
::
Project
::
LabelBoardList
.
fabricate_via_api!
end
before
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
label_board_list
.
project
.
visit!
Page
::
Project
::
Menu
.
perform
(
&
:go_to_boards
)
end
it
'shows board configuration to user without edit permission'
do
new_board_name
=
'UX'
EE
::
Page
::
Project
::
Issue
::
Board
::
Show
.
perform
do
|
show
|
show
.
click_boards_config_button
show
.
set_name
(
new_board_name
)
expect
(
show
.
boards_dropdown
).
to
have_content
(
new_board_name
)
end
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