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

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

        expect(page).to have_text('GitLab')
      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