Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzegorz@gitlab.com>2018-09-04 18:37:20 +0300
committerGrzegorz Bizon <grzegorz@gitlab.com>2018-09-04 18:37:20 +0300
commit13f557d0b86667eb35d4170af55bc874ac22f845 (patch)
tree4f6e0ac1ebd247d0a330cf8d1d1eb33047848c87
parent771cef9897674ed042a2dda49a8b9b9df7e147d9 (diff)
parent86e5dcdb21f5e83009f877e9c62a9f5252de8d99 (diff)
Merge branch 'qa-28' into 'master'
[QA] Add a new Test::Sanity::Failing scenario that always fails Closes gitlab-qa#28 See merge request gitlab-org/gitlab-ce!21477
-rw-r--r--qa/qa.rb1
-rw-r--r--qa/qa/scenario/test/sanity/failing.rb18
-rw-r--r--qa/qa/specs/features/sanity/failing_spec.rb13
3 files changed, 32 insertions, 0 deletions
diff --git a/qa/qa.rb b/qa/qa.rb
index 43313d15645..830a6aa17de 100644
--- a/qa/qa.rb
+++ b/qa/qa.rb
@@ -100,6 +100,7 @@ module QA
end
module Sanity
+ autoload :Failing, 'qa/scenario/test/sanity/failing'
autoload :Selectors, 'qa/scenario/test/sanity/selectors'
end
end
diff --git a/qa/qa/scenario/test/sanity/failing.rb b/qa/qa/scenario/test/sanity/failing.rb
new file mode 100644
index 00000000000..03452f6693d
--- /dev/null
+++ b/qa/qa/scenario/test/sanity/failing.rb
@@ -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
diff --git a/qa/qa/specs/features/sanity/failing_spec.rb b/qa/qa/specs/features/sanity/failing_spec.rb
new file mode 100644
index 00000000000..7e0480e9067
--- /dev/null
+++ b/qa/qa/specs/features/sanity/failing_spec.rb
@@ -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