Skip to content
GitLab
Next
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
GitLab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
4
Snippets
Groups
Projects
Show more breadcrumbs
GitLab.org
GitLab
Commits
9120b946
Commit
9120b946
authored
1 year ago
by
Sanad Liaquat
Committed by
Chloe Liu
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
E2E: Refactor out wait_for_gitlab_to_respond and call after SS toggle
parent
b425af1a
No related branches found
No related tags found
2 merge requests
!123340
E2E: Refactor out wait_for_gitlab_to_respond and call after SS toggle
,
!119439
Draft: Prevent file variable content expansion in downstream pipeline
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
qa/qa/page/main/login.rb
+3
-6
3 additions, 6 deletions
qa/qa/page/main/login.rb
qa/qa/support/wait_for_requests.rb
+6
-0
6 additions, 0 deletions
qa/qa/support/wait_for_requests.rb
with
9 additions
and
6 deletions
qa/qa/page/main/login.rb
+
3
−
6
View file @
9120b946
...
...
@@ -259,13 +259,10 @@ def sign_in_using_gitlab_credentials(user:, skip_page_validation: false)
wait_for_gitlab_to_respond
Page
::
Main
::
Menu
.
perform
(
&
:enable_new_navigation
)
if
Runtime
::
Env
.
super_sidebar_enabled?
Page
::
Main
::
Menu
.
validate_elements_present!
unless
skip_page_validation
end
def
wait_for_gitlab_to_respond
wait_until
(
sleep_interval:
5
,
message:
'502 - GitLab is taking too much time to respond'
)
do
has_no_text?
(
'GitLab is taking too much time to respond'
)
end
wait_for_gitlab_to_respond
Page
::
Main
::
Menu
.
validate_elements_present!
unless
skip_page_validation
end
def
fill_in_credential
(
user
)
...
...
This diff is collapsed.
Click to expand it.
qa/qa/support/wait_for_requests.rb
+
6
−
0
View file @
9120b946
...
...
@@ -39,6 +39,12 @@ def finished_loading?(wait: DEFAULT_MAX_WAIT_TIME)
Capybara
.
page
.
has_no_css?
(
'.gl-spinner'
,
wait:
wait
)
end
end
def
wait_for_gitlab_to_respond
Waiter
.
wait_until
(
sleep_interval:
5
,
message:
'502 - GitLab is taking too much time to respond'
)
do
Capybara
.
page
.
has_no_text?
(
'GitLab is taking too much time to respond'
)
end
end
end
end
end
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment