summaryrefslogtreecommitdiff
path: root/qa/qa.rb
diff options
context:
space:
mode:
authorMark Lapierre <mlapierre@gitlab.com>2019-01-29 15:56:34 -0500
committerMark Lapierre <mlapierre@gitlab.com>2019-01-29 16:18:04 -0500
commit38fcb11f97d02af83cdc5d245e78a3f0d1b146f5 (patch)
treedd60f30771b8dbc2c846468dd5604f7d701cd634 /qa/qa.rb
parentfda30abdb2a88f360b20f99f3cefe0850d4e9f18 (diff)
downloadgitlab-ce-38fcb11f97d02af83cdc5d245e78a3f0d1b146f5.tar.gz
Fix flaky wiki create test
There's an svg on the page that allows you to create a wiki page. The svg takes a fraction of a second to load after which the "Create your first page" button shifts up a bit. This can cause webdriver to miss the hit so we wait for the svg to load before clicking the button. Also update the elements used in the test to conform to our best practice. And replace `act` with `perform` Finally, remove the `before` block and `login` method, making the code slightly simpler.
Diffstat (limited to 'qa/qa.rb')
-rw-r--r--qa/qa.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/qa/qa.rb b/qa/qa.rb
index 7aaf56bd51f..355034daec9 100644
--- a/qa/qa.rb
+++ b/qa/qa.rb
@@ -290,6 +290,7 @@ module QA
#
module Component
autoload :ClonePanel, 'qa/page/component/clone_panel'
+ autoload :LazyLoader, 'qa/page/component/lazy_loader'
autoload :LegacyClonePanel, 'qa/page/component/legacy_clone_panel'
autoload :Dropzone, 'qa/page/component/dropzone'
autoload :GroupsFilter, 'qa/page/component/groups_filter'