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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
6964d051
Commit
6964d051
authored
Sep 17, 2021
by
Zeff Morgan
Committed by
Dan Davison
Sep 17, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add maintains login in mixed env spec
parent
ad203a8f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
0 deletions
+41
-0
qa/qa/runtime/browser.rb
qa/qa/runtime/browser.rb
+2
-0
qa/qa/specs/features/browser_ui/1_manage/login/maintain_log_in_mixed_env_spec.rb
...owser_ui/1_manage/login/maintain_log_in_mixed_env_spec.rb
+39
-0
No files found.
qa/qa/runtime/browser.rb
View file @
6964d051
...
...
@@ -237,6 +237,8 @@ module QA
else
browser
.
manage
.
delete_cookie
(
"gitlab_canary"
)
end
browser
.
navigate
.
refresh
end
##
...
...
qa/qa/specs/features/browser_ui/1_manage/login/maintain_log_in_mixed_env_spec.rb
0 → 100644
View file @
6964d051
# frozen_string_literal: true
module
QA
RSpec
.
describe
'Manage'
,
:mixed_env
,
:smoke
,
only:
{
subdomain: :staging
}
do
describe
'basic user'
do
it
'remains logged in when redirected from canary to non-canary node'
,
testcase:
'https://gitlab.com/gitlab-org/quality/testcases/-/quality/test_cases/2251'
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Support
::
Retrier
.
retry_until
(
sleep_interval:
0.5
)
do
Page
::
Main
::
Login
.
perform
(
&
:can_sign_in?
)
end
Runtime
::
Browser
::
Session
.
target_canary
(
true
)
Flow
::
Login
.
sign_in
verify_session_on_canary
(
true
)
Runtime
::
Browser
::
Session
.
target_canary
(
false
)
verify_session_on_canary
(
false
)
Support
::
Retrier
.
retry_until
(
sleep_interval:
0.5
)
do
Page
::
Main
::
Menu
.
perform
(
&
:sign_out
)
Page
::
Main
::
Login
.
perform
(
&
:can_sign_in?
)
end
end
def
verify_session_on_canary
(
enable_canary
)
Page
::
Main
::
Menu
.
perform
do
|
menu
|
aggregate_failures
'testing session log in'
do
expect
(
menu
.
canary?
).
to
be
(
enable_canary
)
expect
(
menu
).
to
have_personal_area
end
end
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