diff options
Diffstat (limited to 'spec/support/helpers/features/access_token_helpers.rb')
-rw-r--r-- | spec/support/helpers/features/access_token_helpers.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/spec/support/helpers/features/access_token_helpers.rb b/spec/support/helpers/features/access_token_helpers.rb new file mode 100644 index 00000000000..f4bdb70c160 --- /dev/null +++ b/spec/support/helpers/features/access_token_helpers.rb @@ -0,0 +1,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 |