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-08-15 06:10:52 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-08-15 06:10:52 +0300
commitb291dca0e5062e05572e0f106ea499b47d908d35 (patch)
tree158d3cdae42b2d5a55e9c90193cdabe6ec06f60d /qa/lib
parent3677bb721df3c9ae898b6665a8b2ae0b95a9d62f (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'qa/lib')
-rw-r--r--qa/lib/gitlab/page/trials/new.rb4
-rw-r--r--qa/lib/gitlab/page/trials/new.stub.rb241
-rw-r--r--qa/lib/gitlab/page/trials/select.rb1
-rw-r--r--qa/lib/gitlab/page/trials/select.stub.rb129
4 files changed, 372 insertions, 3 deletions
diff --git a/qa/lib/gitlab/page/trials/new.rb b/qa/lib/gitlab/page/trials/new.rb
index b2e6cbdb682..f7aa168e6bf 100644
--- a/qa/lib/gitlab/page/trials/new.rb
+++ b/qa/lib/gitlab/page/trials/new.rb
@@ -9,8 +9,8 @@ module Gitlab
text_field :first_name
text_field :last_name
text_field :company_name
- select :number_of_employees
- text_field :telephone_number
+ select :company_size
+ text_field :phone_number
select :country
select :state
button :continue
diff --git a/qa/lib/gitlab/page/trials/new.stub.rb b/qa/lib/gitlab/page/trials/new.stub.rb
new file mode 100644
index 00000000000..0b3dbaafacc
--- /dev/null
+++ b/qa/lib/gitlab/page/trials/new.stub.rb
@@ -0,0 +1,241 @@
+# frozen_string_literal: true
+
+module Gitlab
+ module Page
+ module Trials
+ module New
+ # @note Defined as +text_field :first_name+
+ # @return [String] The text content or value of +first_name+
+ def first_name
+ # This is a stub, used for indexing. The method is dynamically generated.
+ end
+
+ # Set the value of first_name
+ # @example
+ # Gitlab::Page::Trials::New.perform do |new|
+ # new.first_name = 'value'
+ # end
+ # @param value [String] The value to set.
+ def first_name=(value)
+ # This is a stub, used for indexing. The method is dynamically generated.
+ end
+
+ # @example
+ # Gitlab::Page::Trials::New.perform do |new|
+ # expect(new.first_name_element).to exist
+ # end
+ # @return [Watir::TextField] The raw +TextField+ element
+ def first_name_element
+ # This is a stub, used for indexing. The method is dynamically generated.
+ end
+
+ # @example
+ # Gitlab::Page::Trials::New.perform do |new|
+ # expect(new).to be_first_name
+ # end
+ # @return [Boolean] true if the +first_name+ element is present on the page
+ def first_name?
+ # This is a stub, used for indexing. The method is dynamically generated.
+ end
+
+ # @note Defined as +text_field :last_name+
+ # @return [String] The text content or value of +last_name+
+ def last_name
+ # This is a stub, used for indexing. The method is dynamically generated.
+ end
+
+ # Set the value of last_name
+ # @example
+ # Gitlab::Page::Trials::New.perform do |new|
+ # new.last_name = 'value'
+ # end
+ # @param value [String] The value to set.
+ def last_name=(value)
+ # This is a stub, used for indexing. The method is dynamically generated.
+ end
+
+ # @example
+ # Gitlab::Page::Trials::New.perform do |new|
+ # expect(new.last_name_element).to exist
+ # end
+ # @return [Watir::TextField] The raw +TextField+ element
+ def last_name_element
+ # This is a stub, used for indexing. The method is dynamically generated.
+ end
+
+ # @example
+ # Gitlab::Page::Trials::New.perform do |new|
+ # expect(new).to be_last_name
+ # end
+ # @return [Boolean] true if the +last_name+ element is present on the page
+ def last_name?
+ # This is a stub, used for indexing. The method is dynamically generated.
+ end
+
+ # @note Defined as +text_field :company_name+
+ # @return [String] The text content or value of +company_name+
+ def company_name
+ # This is a stub, used for indexing. The method is dynamically generated.
+ end
+
+ # Set the value of company_name
+ # @example
+ # Gitlab::Page::Trials::New.perform do |new|
+ # new.company_name = 'value'
+ # end
+ # @param value [String] The value to set.
+ def company_name=(value)
+ # This is a stub, used for indexing. The method is dynamically generated.
+ end
+
+ # @example
+ # Gitlab::Page::Trials::New.perform do |new|
+ # expect(new.company_name_element).to exist
+ # end
+ # @return [Watir::TextField] The raw +TextField+ element
+ def company_name_element
+ # This is a stub, used for indexing. The method is dynamically generated.
+ end
+
+ # @example
+ # Gitlab::Page::Trials::New.perform do |new|
+ # expect(new).to be_company_name
+ # end
+ # @return [Boolean] true if the +company_name+ element is present on the page
+ def company_name?
+ # This is a stub, used for indexing. The method is dynamically generated.
+ end
+
+ # @note Defined as +select :company_size+
+ # @return [String] The text content or value of +company_size+
+ def company_size
+ # This is a stub, used for indexing. The method is dynamically generated.
+ end
+
+ # @example
+ # Gitlab::Page::Trials::New.perform do |new|
+ # expect(new.company_size_element).to exist
+ # end
+ # @return [Watir::Select] The raw +Select+ element
+ def company_size_element
+ # This is a stub, used for indexing. The method is dynamically generated.
+ end
+
+ # @example
+ # Gitlab::Page::Trials::New.perform do |new|
+ # expect(new).to be_company_size
+ # end
+ # @return [Boolean] true if the +company_size+ element is present on the page
+ def company_size?
+ # This is a stub, used for indexing. The method is dynamically generated.
+ end
+
+ # @note Defined as +text_field :phone_number+
+ # @return [String] The text content or value of +phone_number+
+ def phone_number
+ # This is a stub, used for indexing. The method is dynamically generated.
+ end
+
+ # Set the value of phone_number
+ # @example
+ # Gitlab::Page::Trials::New.perform do |new|
+ # new.phone_number = 'value'
+ # end
+ # @param value [String] The value to set.
+ def phone_number=(value)
+ # This is a stub, used for indexing. The method is dynamically generated.
+ end
+
+ # @example
+ # Gitlab::Page::Trials::New.perform do |new|
+ # expect(new.phone_number_element).to exist
+ # end
+ # @return [Watir::TextField] The raw +TextField+ element
+ def phone_number_element
+ # This is a stub, used for indexing. The method is dynamically generated.
+ end
+
+ # @example
+ # Gitlab::Page::Trials::New.perform do |new|
+ # expect(new).to be_phone_number
+ # end
+ # @return [Boolean] true if the +phone_number+ element is present on the page
+ def phone_number?
+ # This is a stub, used for indexing. The method is dynamically generated.
+ end
+
+ # @note Defined as +select :country+
+ # @return [String] The text content or value of +country+
+ def country
+ # This is a stub, used for indexing. The method is dynamically generated.
+ end
+
+ # @example
+ # Gitlab::Page::Trials::New.perform do |new|
+ # expect(new.country_element).to exist
+ # end
+ # @return [Watir::Select] The raw +Select+ element
+ def country_element
+ # This is a stub, used for indexing. The method is dynamically generated.
+ end
+
+ # @example
+ # Gitlab::Page::Trials::New.perform do |new|
+ # expect(new).to be_country
+ # end
+ # @return [Boolean] true if the +country+ element is present on the page
+ def country?
+ # This is a stub, used for indexing. The method is dynamically generated.
+ end
+
+ # @note Defined as +select :state+
+ # @return [String] The text content or value of +state+
+ def state
+ # This is a stub, used for indexing. The method is dynamically generated.
+ end
+
+ # @example
+ # Gitlab::Page::Trials::New.perform do |new|
+ # expect(new.state_element).to exist
+ # end
+ # @return [Watir::Select] The raw +Select+ element
+ def state_element
+ # This is a stub, used for indexing. The method is dynamically generated.
+ end
+
+ # @example
+ # Gitlab::Page::Trials::New.perform do |new|
+ # expect(new).to be_state
+ # end
+ # @return [Boolean] true if the +state+ element is present on the page
+ def state?
+ # This is a stub, used for indexing. The method is dynamically generated.
+ end
+
+ # @note Defined as +button :continue+
+ # Clicks +continue+
+ def continue
+ # This is a stub, used for indexing. The method is dynamically generated.
+ end
+
+ # @example
+ # Gitlab::Page::Trials::New.perform do |new|
+ # expect(new.continue_element).to exist
+ # end
+ # @return [Watir::Button] The raw +Button+ element
+ def continue_element
+ # This is a stub, used for indexing. The method is dynamically generated.
+ end
+
+ # @example
+ # Gitlab::Page::Trials::New.perform do |new|
+ # expect(new).to be_continue
+ # end
+ # @return [Boolean] true if the +continue+ element is present on the page
+ def continue?
+ # This is a stub, used for indexing. The method is dynamically generated.
+ end
+ end
+ end
+ end
+end
diff --git a/qa/lib/gitlab/page/trials/select.rb b/qa/lib/gitlab/page/trials/select.rb
index d4cf54805ea..ae807f99c25 100644
--- a/qa/lib/gitlab/page/trials/select.rb
+++ b/qa/lib/gitlab/page/trials/select.rb
@@ -8,7 +8,6 @@ module Gitlab
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
diff --git a/qa/lib/gitlab/page/trials/select.stub.rb b/qa/lib/gitlab/page/trials/select.stub.rb
new file mode 100644
index 00000000000..0c61a58d35c
--- /dev/null
+++ b/qa/lib/gitlab/page/trials/select.stub.rb
@@ -0,0 +1,129 @@
+# frozen_string_literal: true
+
+module Gitlab
+ module Page
+ module Trials
+ module Select
+ # @note Defined as +button :select_group+
+ # Clicks +select_group+
+ def select_group
+ # This is a stub, used for indexing. The method is dynamically generated.
+ end
+
+ # @example
+ # Gitlab::Page::Trials::Select.perform do |select|
+ # expect(select.select_group_element).to exist
+ # end
+ # @return [Watir::Button] The raw +Button+ element
+ def select_group_element
+ # This is a stub, used for indexing. The method is dynamically generated.
+ end
+
+ # @example
+ # Gitlab::Page::Trials::Select.perform do |select|
+ # expect(select).to be_select_group
+ # end
+ # @return [Boolean] true if the +select_group+ element is present on the page
+ def select_group?
+ # This is a stub, used for indexing. The method is dynamically generated.
+ end
+
+ # @note Defined as +div :group_dropdown+
+ # @return [String] The text content or value of +group_dropdown+
+ def group_dropdown
+ # This is a stub, used for indexing. The method is dynamically generated.
+ end
+
+ # @example
+ # Gitlab::Page::Trials::Select.perform do |select|
+ # expect(select.group_dropdown_element).to exist
+ # end
+ # @return [Watir::Div] The raw +Div+ element
+ def group_dropdown_element
+ # This is a stub, used for indexing. The method is dynamically generated.
+ end
+
+ # @example
+ # Gitlab::Page::Trials::Select.perform do |select|
+ # expect(select).to be_group_dropdown
+ # end
+ # @return [Boolean] true if the +group_dropdown+ element is present on the page
+ def group_dropdown?
+ # This is a stub, used for indexing. The method is dynamically generated.
+ end
+
+ # @note Defined as +button :start_your_free_trial+
+ # Clicks +start_your_free_trial+
+ def start_your_free_trial
+ # This is a stub, used for indexing. The method is dynamically generated.
+ end
+
+ # @example
+ # Gitlab::Page::Trials::Select.perform do |select|
+ # expect(select.start_your_free_trial_element).to exist
+ # end
+ # @return [Watir::Button] The raw +Button+ element
+ def start_your_free_trial_element
+ # This is a stub, used for indexing. The method is dynamically generated.
+ end
+
+ # @example
+ # Gitlab::Page::Trials::Select.perform do |select|
+ # expect(select).to be_start_your_free_trial
+ # end
+ # @return [Boolean] true if the +start_your_free_trial+ element is present on the page
+ def start_your_free_trial?
+ # This is a stub, used for indexing. The method is dynamically generated.
+ end
+
+ # @note Defined as +radio :trial_company+
+ # Clicks +trial_company+
+ def trial_company
+ # This is a stub, used for indexing. The method is dynamically generated.
+ end
+
+ # @example
+ # Gitlab::Page::Trials::Select.perform do |select|
+ # expect(select.trial_company_element).to exist
+ # end
+ # @return [Watir::Radio] The raw +Radio+ element
+ def trial_company_element
+ # This is a stub, used for indexing. The method is dynamically generated.
+ end
+
+ # @example
+ # Gitlab::Page::Trials::Select.perform do |select|
+ # expect(select).to be_trial_company
+ # end
+ # @return [Boolean] true if the +trial_company+ element is present on the page
+ def trial_company?
+ # This is a stub, used for indexing. The method is dynamically generated.
+ end
+
+ # @note Defined as +radio :trial_individual+
+ # Clicks +trial_individual+
+ def trial_individual
+ # This is a stub, used for indexing. The method is dynamically generated.
+ end
+
+ # @example
+ # Gitlab::Page::Trials::Select.perform do |select|
+ # expect(select.trial_individual_element).to exist
+ # end
+ # @return [Watir::Radio] The raw +Radio+ element
+ def trial_individual_element
+ # This is a stub, used for indexing. The method is dynamically generated.
+ end
+
+ # @example
+ # Gitlab::Page::Trials::Select.perform do |select|
+ # expect(select).to be_trial_individual
+ # end
+ # @return [Boolean] true if the +trial_individual+ element is present on the page
+ def trial_individual?
+ # This is a stub, used for indexing. The method is dynamically generated.
+ end
+ end
+ end
+ end
+end