summaryrefslogtreecommitdiff
path: root/qa/qa/page/registration/welcome.rb
diff options
context:
space:
mode:
Diffstat (limited to 'qa/qa/page/registration/welcome.rb')
-rw-r--r--qa/qa/page/registration/welcome.rb24
1 files changed, 24 insertions, 0 deletions
diff --git a/qa/qa/page/registration/welcome.rb b/qa/qa/page/registration/welcome.rb
new file mode 100644
index 00000000000..394e94b6414
--- /dev/null
+++ b/qa/qa/page/registration/welcome.rb
@@ -0,0 +1,24 @@
+# frozen_string_literal: true
+
+module QA
+ module Page
+ module Registration
+ class Welcome < Page::Base
+ view 'app/views/registrations/welcome/show.html.haml' do
+ element :get_started_button
+ end
+
+ def click_get_started_button_if_available
+ if has_element?(:get_started_button)
+ Support::Retrier.retry_until do
+ click_element :get_started_button
+ has_no_element?(:get_started_button)
+ end
+ end
+ end
+ end
+ end
+ end
+end
+
+QA::Page::Registration::Welcome.prepend_if_ee('QA::EE::Page::Registration::Welcome')