remove calls to set the timepicker in Lens tests, use default time#145656
remove calls to set the timepicker in Lens tests, use default time#145656LeeDr wants to merge 14 commits intoelastic:mainfrom
Conversation
This reverts commit 036bc8e.
|
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