summaryrefslogtreecommitdiff
path: root/spec/support/helpers/features/access_token_helpers.rb
blob: bc83964291440a0d403ad8ecf5b8f5ef55e5de95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

module Features
  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