summaryrefslogtreecommitdiff
path: root/qa/qa/specs/features/sanity/framework_spec.rb
blob: feec56478c0bddc7851e617ad1f54a7e462fb74f (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 checks', :orchestrated, :framework do
    describe 'Passing orchestrated example' do
      it 'succeeds' do
        Runtime::Browser.visit(:gitlab, Page::Main::Login)

        expect(page).to have_text('A complete DevOps platform')
      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