diff options
Diffstat (limited to 'spec/support/helpers/features')
-rw-r--r-- | spec/support/helpers/features/access_token_helpers.rb | 19 | ||||
-rw-r--r-- | spec/support/helpers/features/releases_helpers.rb | 2 |
2 files changed, 20 insertions, 1 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 diff --git a/spec/support/helpers/features/releases_helpers.rb b/spec/support/helpers/features/releases_helpers.rb index 9cce9c4882d..a24b99bbe61 100644 --- a/spec/support/helpers/features/releases_helpers.rb +++ b/spec/support/helpers/features/releases_helpers.rb @@ -39,7 +39,7 @@ module Spec wait_for_all_requests - click_button("#{branch_name}") + click_button(branch_name.to_s) end end |