Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/qa/lib
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-02-01 03:07:51 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-02-01 03:07:51 +0300
commit4aaadcc49070b085d63377c004c5632b6d1b2b4c (patch)
tree0d8c890fd1ce0ca22ec579a91fcd84f92c50404f /qa/lib
parent9e83d078577a9c066f21fcef1355f800ad895c9c (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'qa/lib')
-rw-r--r--qa/lib/gitlab/page/trials/new.rb20
-rw-r--r--qa/lib/gitlab/page/trials/select.rb24
2 files changed, 44 insertions, 0 deletions
diff --git a/qa/lib/gitlab/page/trials/new.rb b/qa/lib/gitlab/page/trials/new.rb
new file mode 100644
index 00000000000..b2e6cbdb682
--- /dev/null
+++ b/qa/lib/gitlab/page/trials/new.rb
@@ -0,0 +1,20 @@
+# frozen_string_literal: true
+
+module Gitlab
+ module Page
+ module Trials
+ class New < Chemlab::Page
+ path '/-/trials/new'
+
+ text_field :first_name
+ text_field :last_name
+ text_field :company_name
+ select :number_of_employees
+ text_field :telephone_number
+ select :country
+ select :state
+ button :continue
+ end
+ end
+ end
+end
diff --git a/qa/lib/gitlab/page/trials/select.rb b/qa/lib/gitlab/page/trials/select.rb
new file mode 100644
index 00000000000..6eaf6003837
--- /dev/null
+++ b/qa/lib/gitlab/page/trials/select.rb
@@ -0,0 +1,24 @@
+# frozen_string_literal: true
+
+module Gitlab
+ module Page
+ module Trials
+ class Select < Chemlab::Page
+ path '/-/trials/select'
+
+ button :select_group, 'data-testid': 'base-dropdown-toggle'
+ div :group_dropdown, 'data-testid': 'base-dropdown-menu'
+ text_field :new_group_name
+ button :start_your_free_trial
+ radio :trial_company
+ radio :trial_individual
+
+ def subscription_for=(group_name)
+ select_group
+
+ group_dropdown_element.span(text: /#{group_name}/).click
+ end
+ end
+ end
+ end
+end