Skip to content

Conversation

@emilioalvap
Copy link
Contributor

@emilioalvap emilioalvap commented Feb 4, 2022

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.

@emilioalvap emilioalvap marked this pull request as ready for review February 9, 2022 18:03
@emilioalvap emilioalvap requested a review from a team as a code owner February 9, 2022 18:03
@emilioalvap emilioalvap added bug Fixes for quality problems that affect the customer experience release_note:skip Skip the PR/issue when compiling release notes v8.2.0 Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability labels Feb 9, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/uptime (Team:uptime)

Comment on lines 21 to +23

listOfJourneys.forEach((journey) => {
if (result?.[journey] && result[journey].status !== 'succeeded') {
Object.entries(results).forEach(([_journey, result]) => {
if (result.status !== 'succeeded') {
Copy link
Contributor Author

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 },
Copy link
Contributor Author

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

@emilioalvap emilioalvap changed the title Enable flaky suspects Fix flaky monitor details tests Feb 9, 2022

async editMonitor() {
await this.clickByTestSubj('monitorManagementEditMonitor');
await page.click(this.byTestId('monitorManagementEditMonitor'), { delay: 800 });
Copy link
Contributor Author

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.

@kibana-ci
Copy link

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@emilioalvap emilioalvap added v8.1.0 and removed v8.2.0 labels Feb 10, 2022
Copy link
Contributor

@shahzad31 shahzad31 left a 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 !!

@emilioalvap emilioalvap merged commit 453e22e into elastic:main Feb 11, 2022
@kibanamachine kibanamachine added the backport:skip This PR does not require backporting label Feb 11, 2022
@dominiqueclarke dominiqueclarke added v8.0.0 auto-backport Deprecated - use backport:version if exact versions are needed and removed backport:skip This PR does not require backporting labels Feb 23, 2022
@kibanamachine
Copy link
Contributor

The following labels were identified as gaps in your version labels and will be added automatically:

  • v8.2.0

If any of these should not be on your pull request, please manually remove them.

@kibanamachine
Copy link
Contributor

💔 All backports failed

Status Branch Result
8.0 Backport failed because of merge conflicts
8.1 Backport failed because of merge conflicts

How to fix

Re-run the backport manually:

node scripts/backport --pr 124700

Questions ?

Please refer to the Backport tool documentation

dominiqueclarke pushed a commit to dominiqueclarke/kibana that referenced this pull request Feb 23, 2022
* 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
dominiqueclarke pushed a commit to dominiqueclarke/kibana that referenced this pull request Feb 23, 2022
* 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
@kibanamachine
Copy link
Contributor

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.

@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Feb 24, 2022
@kibanamachine
Copy link
Contributor

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
@kibanamachine
Copy link
Contributor

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.

@kibanamachine
Copy link
Contributor

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.

@kibanamachine
Copy link
Contributor

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.

@kibanamachine
Copy link
Contributor

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.

@kibanamachine
Copy link
Contributor

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.

@kibanamachine
Copy link
Contributor

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.

@kibanamachine
Copy link
Contributor

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.

@kibanamachine
Copy link
Contributor

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.

dominiqueclarke added a commit that referenced this pull request Mar 10, 2022
* [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]>
@kibanamachine
Copy link
Contributor

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
@kibanamachine
Copy link
Contributor

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.

@dominiqueclarke dominiqueclarke added v7.17.2 auto-backport Deprecated - use backport:version if exact versions are needed and removed auto-backport Deprecated - use backport:version if exact versions are needed labels Mar 14, 2022
@kibanamachine
Copy link
Contributor

💔 All backports failed

Status Branch Result
7.17 Backport failed because of merge conflicts

Manual backport

To create the backport manually run:

node scripts/backport --pr 124700

Questions ?

Please refer to the Backport tool documentation

dominiqueclarke pushed a commit to dominiqueclarke/kibana that referenced this pull request Mar 14, 2022
* 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
@kibanamachine
Copy link
Contributor

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.

dominiqueclarke added a commit that referenced this pull request Mar 15, 2022
* [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]>
@kibanamachine
Copy link
Contributor

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.

@emilioalvap emilioalvap added backport:skip This PR does not require backporting and removed backport missing Added to PRs automatically when the are determined to be missing a backport. auto-backport Deprecated - use backport:version if exact versions are needed labels Mar 16, 2022
@emilioalvap
Copy link
Contributor Author

Removing backport label as it was merged manually on #127633

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment