# frozen_string_literal: true

module QA
  # https://gitlab.com/gitlab-org/quality/nightly/issues/83
  context 'Manage', :orchestrated, :oauth, :quarantine do
    describe 'OAuth login' do
      it 'User logs in to GitLab with GitHub OAuth' 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

# frozen_string_literal: true

module QA
  context 'Manage', :orchestrated, :oauth do
    describe 'OAuth login' do
      it 'User logs in to GitLab with GitHub OAuth' 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

Revert "Quarantine GitHub OAuth test"
Revert "Quarantine GitHub OAuth test"

This reverts commit 970576c5c6a94edd93dd822ede7b82e73c71fea9.
