-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Fix flaky monitor details tests #124700
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
Fix flaky monitor details tests #124700
Conversation
… add monitor details page object
3cd3b7f to
c1ad76a
Compare
|
Pinging @elastic/uptime (Team:uptime) |
|
|
||
| listOfJourneys.forEach((journey) => { | ||
| if (result?.[journey] && result[journey].status !== 'succeeded') { | ||
| Object.entries(results).forEach(([_journey, result]) => { | ||
| if (result.status !== 'succeeded') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggesting this one to avoid journeys hardcoded list
|
|
||
| const res = await playwrightRun({ | ||
| params: { kibanaUrl }, | ||
| params: { kibanaUrl, getService }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inject kibana services so they can be used in journeys
|
|
||
| async editMonitor() { | ||
| await this.clickByTestSubj('monitorManagementEditMonitor'); | ||
| await page.click(this.byTestId('monitorManagementEditMonitor'), { delay: 800 }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've seen some recordings where clicks on icon buttons are just selecting it, not triggering click action. Adding a click delay seems to fix the issue.
💚 Build SucceededMetrics [docs]
History
To update your PR or re-run it, just comment with: |
shahzad31
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work, i do feel the need to have https://playwright.dev/docs/test-parallel in @elastic/synthetics runner now.
Test are taking long time now !!
|
The following labels were identified as gaps in your version labels and will be added automatically:
If any of these should not be on your pull request, please manually remove them. |
💔 All backports failed
How to fixRe-run the backport manually: Questions ?Please refer to the Backport tool documentation |
* Rewrite flaky tests to e2e pipeline, add data initialization helpers, add monitor details page object (cherry picked from commit 453e22e) # Conflicts: # x-pack/plugins/uptime/e2e/journeys/index.ts
* Rewrite flaky tests to e2e pipeline, add data initialization helpers, add monitor details page object (cherry picked from commit 453e22e) # Conflicts: # x-pack/plugins/uptime/e2e/journeys/index.ts # x-pack/plugins/uptime/e2e/journeys/monitor_management.journey.ts # x-pack/plugins/uptime/e2e/journeys/utils.ts # x-pack/plugins/uptime/e2e/page_objects/monitor_management.tsx # x-pack/plugins/uptime/e2e/playwright_start.ts # x-pack/test/functional_with_es_ssl/apps/uptime/anomaly_alert.ts
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
8 similar comments
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
* [Uptime] Fix flaky monitor details tests (#124700) * Rewrite flaky tests to e2e pipeline, add data initialization helpers, add monitor details page object (cherry picked from commit 453e22e) # Conflicts: # x-pack/plugins/uptime/e2e/journeys/index.ts * adjust tests Co-authored-by: Emilio Alvarez Piñeiro <[email protected]> Co-authored-by: Kibana Machine <[email protected]>
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
1 similar comment
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
* Rewrite flaky tests to e2e pipeline, add data initialization helpers, add monitor details page object (cherry picked from commit 453e22e) # Conflicts: # x-pack/plugins/uptime/e2e/journeys/data_view_permissions.ts # x-pack/plugins/uptime/e2e/journeys/index.ts # x-pack/plugins/uptime/e2e/journeys/monitor_management.journey.ts # x-pack/plugins/uptime/e2e/journeys/uptime.journey.ts # x-pack/plugins/uptime/e2e/journeys/utils.ts # x-pack/plugins/uptime/e2e/page_objects/monitor_management.tsx # x-pack/plugins/uptime/e2e/playwright_start.ts # x-pack/test/functional/apps/uptime/monitor.ts # x-pack/test/functional_with_es_ssl/apps/uptime/anomaly_alert.ts
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
* [Uptime] Fix flaky monitor details tests (#124700) * Rewrite flaky tests to e2e pipeline, add data initialization helpers, add monitor details page object (cherry picked from commit 453e22e) # Conflicts: # x-pack/plugins/uptime/e2e/journeys/data_view_permissions.ts # x-pack/plugins/uptime/e2e/journeys/index.ts # x-pack/plugins/uptime/e2e/journeys/monitor_management.journey.ts # x-pack/plugins/uptime/e2e/journeys/uptime.journey.ts # x-pack/plugins/uptime/e2e/journeys/utils.ts # x-pack/plugins/uptime/e2e/page_objects/monitor_management.tsx # x-pack/plugins/uptime/e2e/playwright_start.ts # x-pack/test/functional/apps/uptime/monitor.ts # x-pack/test/functional_with_es_ssl/apps/uptime/anomaly_alert.ts * Apply suggestions from code review * update page objects * fix linting * adjust page objects * adjust page objects Co-authored-by: Emilio Alvarez Piñeiro <[email protected]> Co-authored-by: Kibana Machine <[email protected]>
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
|
Removing backport label as it was merged manually on #127633 |
Summary
Fixes #118476, fixes #122025 & fixes #119770.
Migrate flaky tests to e2e pipeline, together with utility classes and helpers.
Checklist
Delete any items that are not applicable to this PR.