[QA] Add a new Test::Sanity::Failing scenario that always fails

Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
Rémy Coutable 2018-09-03 16:36:18 +02:00
parent 48541cacc0
commit 86e5dcdb21
No known key found for this signature in database
GPG Key ID: 98DFFD1C0C62B70B
3 changed files with 32 additions and 0 deletions

View File

@ -98,6 +98,7 @@ module QA
end
module Sanity
autoload :Failing, 'qa/scenario/test/sanity/failing'
autoload :Selectors, 'qa/scenario/test/sanity/selectors'
end
end

View File

@ -0,0 +1,18 @@
# frozen_string_literal: true
module QA
module Scenario
module Test
module Sanity
##
# This scenario exits with a 1 exit code.
#
class Failing < Template
include Bootable
tags :failing
end
end
end
end
end

View File

@ -0,0 +1,13 @@
# frozen_string_literal: true
module QA
context 'Sanity checks', :orchestrated, :failing do
describe 'Failing orchestrated example' do
it 'always 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