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
07521d78
Commit
07521d78
authored
Aug 15, 2019
by
Walmyr Lima
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create board page object and autolaad it
parent
5f9a84b3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
79 additions
and
0 deletions
+79
-0
qa/qa/ee.rb
qa/qa/ee.rb
+4
-0
qa/qa/ee/page/project/issue/board/show.rb
qa/qa/ee/page/project/issue/board/show.rb
+75
-0
No files found.
qa/qa/ee.rb
View file @
07521d78
...
...
@@ -72,6 +72,10 @@ module QA
module
Issue
autoload
:Index
,
'qa/ee/page/project/issue/index'
autoload
:Show
,
'qa/ee/page/project/issue/show'
module
Board
autoload
:Show
,
'qa/ee/page/project/issue/board/show'
end
end
module
Settings
...
...
qa/qa/ee/page/project/issue/board/show.rb
0 → 100644
View file @
07521d78
# frozen_string_literal: true
module
QA
module
EE
module
Page
module
Project
module
Issue
module
Board
class
Show
<
QA
::
Page
::
Base
view
'app/assets/javascripts/boards/components/board_card.vue'
do
element
:board_card
end
view
'app/assets/javascripts/boards/components/board_list.vue'
do
element
:board_list_cards_area
end
view
'app/assets/javascripts/boards/components/boards_selector.vue'
do
element
:boards_dropdown
end
view
'app/views/shared/boards/_show.html.haml'
do
element
:boards_list
end
view
'app/views/shared/boards/components/_board.html.haml'
do
element
:board_list
element
:board_list_header
end
def
boards_dropdown
find_element
(
:boards_dropdown
)
end
def
boards_list_cards_area_with_index
(
index
)
wait_boards_list_finish_loading
do
within_element_by_index
(
:board_list
,
index
)
do
find_element
(
:board_list_cards_area
)
end
end
end
def
boards_list_header_with_index
(
index
)
wait_boards_list_finish_loading
do
within_element_by_index
(
:board_list
,
index
)
do
find_element
(
:board_list_header
)
end
end
end
def
card_of_list_with_index
(
index
)
wait_boards_list_finish_loading
do
within_element_by_index
(
:board_list
,
index
)
do
find_element
(
:board_card
)
end
end
end
private
def
wait_boards_list_finish_loading
within_element
(
:boards_list
)
do
wait
(
reload:
false
,
max:
5
,
interval:
1
)
do
finished_loading?
yield
end
end
end
end
end
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