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
c6548dc3
Commit
c6548dc3
authored
Feb 06, 2020
by
Desiree Chevalier
Committed by
Walmyr Lima e Silva Filho
Feb 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove uses of click_body in e2e specs
parent
c6631e6b
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
10 deletions
+8
-10
qa/qa/ee/page/group/epic/show.rb
qa/qa/ee/page/group/epic/show.rb
+2
-1
qa/qa/page/base.rb
qa/qa/page/base.rb
+0
-6
qa/qa/page/component/select2.rb
qa/qa/page/component/select2.rb
+4
-0
qa/qa/page/project/issue/show.rb
qa/qa/page/project/issue/show.rb
+1
-1
qa/qa/page/project/new.rb
qa/qa/page/project/new.rb
+1
-2
No files found.
qa/qa/ee/page/group/epic/show.rb
View file @
c6548dc3
...
...
@@ -35,7 +35,8 @@ module QA
def
add_issue_to_epic
(
issue_url
)
find_element
(
:issue_actions_split_button
).
find
(
'button'
,
text:
'Add an issue'
).
click
fill_element
:add_issue_input
,
issue_url
click_body
# Clicking the title blurs the input
click_element
:title
click_element
:add_issue_button
end
...
...
qa/qa/page/base.rb
View file @
c6548dc3
...
...
@@ -255,12 +255,6 @@ module QA
click_link
text
end
def
click_body
wait_for_requests
find
(
'body'
).
click
end
def
visit_link_in_element
(
name
)
visit
find_element
(
name
)[
'href'
]
end
...
...
qa/qa/page/component/select2.rb
View file @
c6548dc3
...
...
@@ -34,6 +34,10 @@ module QA
has_css?
(
'.select2-active'
,
wait:
1
)
has_no_css?
(
'.select2-active'
,
wait:
30
)
end
def
dropdown_open?
has_css?
(
'.select2-input'
)
end
end
end
end
...
...
qa/qa/page/project/issue/show.rb
View file @
c6548dc3
...
...
@@ -124,7 +124,7 @@ module QA
end
end
click_
body
click_
element
(
:edit_link_labels
)
labels
.
each
do
|
label
|
has_element?
(
:labels_block
,
text:
label
)
...
...
qa/qa/page/project/new.rb
View file @
c6548dc3
...
...
@@ -32,8 +32,7 @@ module QA
def
choose_namespace
(
namespace
)
retry_on_exception
do
click_body
click_element
:project_namespace_select
click_element
:project_namespace_select
unless
dropdown_open?
search_and_select
(
namespace
)
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