diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-09-06 06:11:26 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-09-06 06:11:26 +0300 |
commit | 93f74090db3ce879f77cd5abbfecb00174bcb550 (patch) | |
tree | 316ed76e62eada0ee1df27ba1fd8fc6091fd177e /qa/lib | |
parent | 2c39efa4582c5a225b1e1c4a902cff21bae5c8df (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'qa/lib')
-rw-r--r-- | qa/lib/gitlab/page/main/login.rb | 38 | ||||
-rw-r--r-- | qa/lib/gitlab/page/main/login.stub.rb | 183 |
2 files changed, 0 insertions, 221 deletions
diff --git a/qa/lib/gitlab/page/main/login.rb b/qa/lib/gitlab/page/main/login.rb deleted file mode 100644 index de05df1a086..00000000000 --- a/qa/lib/gitlab/page/main/login.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -module Gitlab - module Page - module Main - class Login < Chemlab::Page - path '/users/sign_in' - - text_field :login_field - text_field :password_field - button :sign_in_button - - button :accept_terms, text: 'Accept terms' - - # password change tab - text_field :password_confirmation_field - button :change_password_button - - # Sign in using a given username and password - # @note this will also automatically accept terms if prompted - # @param [String] username the username to sign in with - # @param [String] password the password to sign in with - # @example - # Page::Main::Login.perform do |login| - # login.sign_in_as(username: 'username', password: 'password') - # login.sign_in_as(username: 'username', password: 'password', accept_terms: false) - # end - def sign_in_as(username:, password:, accept_terms: true) - self.login_field = username - self.password_field = password - - sign_in_button - self.accept_terms if accept_terms && accept_terms? - end - end - end - end -end diff --git a/qa/lib/gitlab/page/main/login.stub.rb b/qa/lib/gitlab/page/main/login.stub.rb deleted file mode 100644 index a819ca4bcc8..00000000000 --- a/qa/lib/gitlab/page/main/login.stub.rb +++ /dev/null @@ -1,183 +0,0 @@ -# frozen_string_literal: true - -module Gitlab - module Page - module Main - module Login - # @note Defined as +text_field :login_field+ - # @return [String] The text content or value of +login_field+ - def login_field - # This is a stub, used for indexing. The method is dynamically generated. - end - - # Set the value of login_field - # @example - # Gitlab::Page::Main::Login.perform do |login| - # login.login_field = 'value' - # end - # @param value [String] The value to set. - def login_field=(value) - # This is a stub, used for indexing. The method is dynamically generated. - end - - # @example - # Gitlab::Page::Main::Login.perform do |login| - # expect(login.login_field_element).to exist - # end - # @return [Watir::TextField] The raw +TextField+ element - def login_field_element - # This is a stub, used for indexing. The method is dynamically generated. - end - - # @example - # Gitlab::Page::Main::Login.perform do |login| - # expect(login).to be_login_field - # end - # @return [Boolean] true if the +login_field+ element is present on the page - def login_field? - # This is a stub, used for indexing. The method is dynamically generated. - end - - # @note Defined as +text_field :password_field+ - # @return [String] The text content or value of +password_field+ - def password_field - # This is a stub, used for indexing. The method is dynamically generated. - end - - # Set the value of password_field - # @example - # Gitlab::Page::Main::Login.perform do |login| - # login.password_field = 'value' - # end - # @param value [String] The value to set. - def password_field=(value) - # This is a stub, used for indexing. The method is dynamically generated. - end - - # @example - # Gitlab::Page::Main::Login.perform do |login| - # expect(login.password_field_element).to exist - # end - # @return [Watir::TextField] The raw +TextField+ element - def password_field_element - # This is a stub, used for indexing. The method is dynamically generated. - end - - # @example - # Gitlab::Page::Main::Login.perform do |login| - # expect(login).to be_password_field - # end - # @return [Boolean] true if the +password_field+ element is present on the page - def password_field? - # This is a stub, used for indexing. The method is dynamically generated. - end - - # @note Defined as +button :sign_in_button+ - # Clicks +sign_in_button+ - def sign_in_button - # This is a stub, used for indexing. The method is dynamically generated. - end - - # @example - # Gitlab::Page::Main::Login.perform do |login| - # expect(login.sign_in_button_element).to exist - # end - # @return [Watir::Button] The raw +Button+ element - def sign_in_button_element - # This is a stub, used for indexing. The method is dynamically generated. - end - - # @example - # Gitlab::Page::Main::Login.perform do |login| - # expect(login).to be_sign_in_button - # end - # @return [Boolean] true if the +sign_in_button+ element is present on the page - def sign_in_button? - # This is a stub, used for indexing. The method is dynamically generated. - end - - # @note Defined as +button :accept_terms+ - # Clicks +accept_terms+ - def accept_terms - # This is a stub, used for indexing. The method is dynamically generated. - end - - # @example - # Gitlab::Page::Main::Login.perform do |login| - # expect(login.accept_terms_element).to exist - # end - # @return [Watir::Button] The raw +Button+ element - def accept_terms_element - # This is a stub, used for indexing. The method is dynamically generated. - end - - # @example - # Gitlab::Page::Main::Login.perform do |login| - # expect(login).to be_accept_terms - # end - # @return [Boolean] true if the +accept_terms+ element is present on the page - def accept_terms? - # This is a stub, used for indexing. The method is dynamically generated. - end - - # @note Defined as +text_field :password_confirmation_field+ - # @return [String] The text content or value of +password_confirmation_field+ - def password_confirmation_field - # This is a stub, used for indexing. The method is dynamically generated. - end - - # Set the value of password_confirmation_field - # @example - # Gitlab::Page::Main::Login.perform do |login| - # login.password_confirmation_field = 'value' - # end - # @param value [String] The value to set. - def password_confirmation_field=(value) - # This is a stub, used for indexing. The method is dynamically generated. - end - - # @example - # Gitlab::Page::Main::Login.perform do |login| - # expect(login.password_confirmation_field_element).to exist - # end - # @return [Watir::TextField] The raw +TextField+ element - def password_confirmation_field_element - # This is a stub, used for indexing. The method is dynamically generated. - end - - # @example - # Gitlab::Page::Main::Login.perform do |login| - # expect(login).to be_password_confirmation_field - # end - # @return [Boolean] true if the +password_confirmation_field+ element is present on the page - def password_confirmation_field? - # This is a stub, used for indexing. The method is dynamically generated. - end - - # @note Defined as +button :change_password_button+ - # Clicks +change_password_button+ - def change_password_button - # This is a stub, used for indexing. The method is dynamically generated. - end - - # @example - # Gitlab::Page::Main::Login.perform do |login| - # expect(login.change_password_button_element).to exist - # end - # @return [Watir::Button] The raw +Button+ element - def change_password_button_element - # This is a stub, used for indexing. The method is dynamically generated. - end - - # @example - # Gitlab::Page::Main::Login.perform do |login| - # expect(login).to be_change_password_button - # end - # @return [Boolean] true if the +change_password_button+ element is present on the page - def change_password_button? - # This is a stub, used for indexing. The method is dynamically generated. - end - end - end - end -end |