-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove calls to set the timepicker in Lens tests, use default time #145656
Conversation
This reverts commit 036bc8e.
…nsDefaultTimespan
Pinging @elastic/kibana-qa (Team:QA) |
That sounds great. |
After a bunch of testing and trying to change
|
💔 Build FailedFailed CI StepsTest Failures
Metrics [docs]Unknown metric groupsESLint disabled in files
ESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
I've done this in (not yet merged) #146462 if you would like to review that. |
Summary
ref: #113998
These Lens tests had 85 calls to set the timepicker (all to the same default time) but the default time was already being set to that same time in the index file;
https://github.com/elastic/kibana/blob/main/x-pack/test/functional/apps/lens/group1/index.ts#L56
https://github.com/elastic/kibana/blob/main/x-pack/test/functional/apps/lens/group2/index.ts#L56
https://github.com/elastic/kibana/blob/main/x-pack/test/functional/apps/lens/group3/index.ts#L56
UPDATE: I reverted the changes to group2 and 3 because of test failures. I can probably remove most of the calls to
PageObjects.lens.goToTimeRange()
but I'll leave it to another PR.UPDATE: Currently have removed 27 calls to goToTimeRange. Each call takes about 4.5 seconds on my laptop. So this PR should take about 2 minutes off the tests in lens/group1