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

oauth_login_with_github_spec.rb « login « 10_govern « browser_ui « features « specs « qa « qa - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 872b7a7d87fe5ad60393e36d4c77d52c65d1ae1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

module QA
  RSpec.describe 'Govern', :orchestrated, :oauth, product_group: :authentication_and_authorization do
    describe 'OAuth' do
      it 'connects and logs in with GitHub OAuth',
        testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/402405' do
        Runtime::Browser.visit(:gitlab, Page::Main::Login)

        Page::Main::Login.perform(&:sign_in_with_github)

        Vendor::Github::Page::Login.perform(&:login)

        expect(page).to have_content('Welcome to GitLab')
      end
    end
  end
end