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

access_token_helpers.rb « features « helpers « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f4bdb70c16035d85c61dcaa7e4577178cc5cf3ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true
module Spec
  module Support
    module Helpers
      module AccessTokenHelpers
        def active_access_tokens
          find("[data-testid='active-tokens']")
        end

        def created_access_token
          within('[data-testid=access-token-section]') do
            find('[data-testid=toggle-visibility-button]').click
            find_field('new-access-token').value
          end
        end
      end
    end
  end
end