Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
86e5dcdb
Commit
86e5dcdb
authored
Sep 03, 2018
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[QA] Add a new Test::Sanity::Failing scenario that always fails
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
48541cac
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
0 deletions
+32
-0
qa/qa.rb
qa/qa.rb
+1
-0
qa/qa/scenario/test/sanity/failing.rb
qa/qa/scenario/test/sanity/failing.rb
+18
-0
qa/qa/specs/features/sanity/failing_spec.rb
qa/qa/specs/features/sanity/failing_spec.rb
+13
-0
No files found.
qa/qa.rb
View file @
86e5dcdb
...
@@ -98,6 +98,7 @@ module QA
...
@@ -98,6 +98,7 @@ module QA
end
end
module
Sanity
module
Sanity
autoload
:Failing
,
'qa/scenario/test/sanity/failing'
autoload
:Selectors
,
'qa/scenario/test/sanity/selectors'
autoload
:Selectors
,
'qa/scenario/test/sanity/selectors'
end
end
end
end
...
...
qa/qa/scenario/test/sanity/failing.rb
0 → 100644
View file @
86e5dcdb
# 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
qa/qa/specs/features/sanity/failing_spec.rb
0 → 100644
View file @
86e5dcdb
# 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment