summaryrefslogtreecommitdiff
path: root/qa/qa/specs/features/browser_ui/1_manage/group/group_access_token_spec.rb
blob: a35cde854a2ac7e0480577b87ac2b91b4aa0afe9 (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 QA
  RSpec.describe 'Manage' do
    describe 'Group access tokens', product_group: :authentication_and_authorization do
      let(:group_access_token) { QA::Resource::GroupAccessToken.fabricate_via_browser_ui! }

      it(
        'can be created and revoked via the UI',
        testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/367044'
      ) do
        expect(group_access_token.token).not_to be_nil

        group_access_token.revoke_via_ui!
        expect(page).to have_text("Revoked access token #{group_access_token.name}!")
      end
    end
  end
end