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
Léo-Paul Géneau
gitlab-ce
Commits
099613f4
Commit
099613f4
authored
Jan 18, 2019
by
Sanad Liaquat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add qa element
parent
d74b3cc1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
app/assets/javascripts/lazy_loader.js
app/assets/javascripts/lazy_loader.js
+1
-0
qa/qa/page/label/index.rb
qa/qa/page/label/index.rb
+6
-2
No files found.
app/assets/javascripts/lazy_loader.js
View file @
099613f4
...
...
@@ -163,6 +163,7 @@ export default class LazyLoader {
img
.
removeAttribute
(
'
data-src
'
);
img
.
classList
.
remove
(
'
lazy
'
);
img
.
classList
.
add
(
'
js-lazy-loaded
'
);
img
.
classList
.
add
(
'
qa-js-lazy-loaded
'
);
}
}
}
qa/qa/page/label/index.rb
View file @
099613f4
...
...
@@ -10,12 +10,16 @@ module QA
element
:label_svg
end
view
'app/assets/javascripts/lazy_loader.js'
do
element
:js_lazy_loaded
end
def
go_to_new_label
# The 'labels.svg' takes a fraction of a second to load after which the "New label" button shifts up a bit
# This can cause webdriver to miss the hit so we wait for the svg to load (implicitly with has_
css
?)
# This can cause webdriver to miss the hit so we wait for the svg to load (implicitly with has_
element
?)
# before clicking the button.
within_element
(
:label_svg
)
do
has_
css?
(
'.js-lazy-loaded'
)
has_
element?
(
:js_lazy_loaded
)
end
click_element
:label_create_new
...
...
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