Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
fb79b79f19d3
Commit
94763b92
authored
Sep 21, 2018
by
Mesut Güneş
Committed by
Rémy Coutable
Dec 04, 2018
Browse files
Add a log-out step and expectation to log-in test
parent
19c8ec5ce9d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
qa/qa/specs/features/browser_ui/1_manage/login/log_in_spec.rb
View file @
fb79b79f
module
QA
context
'Manage'
,
:smoke
do
describe
'basic user login'
do
it
'user logs in using basic credentials'
do
it
'user logs in using basic credentials
and logs out
'
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
act
{
sign_in_using_credentials
}
...
...
@@ -11,6 +11,15 @@ module QA
Page
::
Main
::
Menu
.
perform
do
|
menu
|
expect
(
menu
).
to
have_personal_area
end
Page
::
Main
::
Menu
.
perform
do
|
menu
|
menu
.
sign_out
expect
(
menu
).
not_to
have_personal_area
end
Page
::
Main
::
Login
.
perform
do
|
form
|
expect
(
form
.
sign_in_tab?
).
to
be
(
true
)
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