summaryrefslogtreecommitdiff
path: root/qa/qa/specs/features/sanity/framework_spec.rb
blob: ee9d068eb3a4e14cd02057633c05a8e244940600 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# frozen_string_literal: true

module QA
  context 'Framework sanity checks', :orchestrated, :framework do
    describe 'Passing orchestrated example' do
      it 'succeeds' do
        Runtime::Browser.visit(:gitlab, Page::Main::Login)

        Page::Main::Login.perform do |main_login|
          expect(main_login.sign_in_tab?).to be(true)
        end
      end
    end

    describe 'Failing orchestrated example' do
      it 'fails' do
        Runtime::Browser.visit(:gitlab, Page::Main::Login)

        expect(page).to have_text("These Aren't the Texts You're Looking For", wait: 1)
      end
    end
  end
end