Skip to content

Commit

Permalink
[8.11] [Synthetics] Unskip test now mode e2e test (elastic#168932) (e…
Browse files Browse the repository at this point in the history
…lastic#169022)

# Backport

This will backport the following commits from `main` to `8.11`:
- [[Synthetics] Unskip test now mode e2e test
(elastic#168932)](elastic#168932)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT
[{"author":{"name":"Shahzad","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-10-16T19:04:22Z","message":"[Synthetics]
Unskip test now mode e2e test
(elastic#168932)","sha":"b3e66b1e0abfbf10e51bd77abcdf2bb7e3c1e622","branchLabelMapping":{"^v8.12.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:uptime","release_note:skip","v8.11.0","v8.12.0"],"number":168932,"url":"https://github.com/elastic/kibana/pull/168932","mergeCommit":{"message":"[Synthetics]
Unskip test now mode e2e test
(elastic#168932)","sha":"b3e66b1e0abfbf10e51bd77abcdf2bb7e3c1e622"}},"sourceBranch":"main","suggestedTargetBranches":["8.11"],"targetPullRequestStates":[{"branch":"8.11","label":"v8.11.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.12.0","labelRegex":"^v8.12.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/168932","number":168932,"mergeCommit":{"message":"[Synthetics]
Unskip test now mode e2e test
(elastic#168932)","sha":"b3e66b1e0abfbf10e51bd77abcdf2bb7e3c1e622"}}]}]
BACKPORT-->

Co-authored-by: Shahzad <[email protected]>
  • Loading branch information
kibanamachine and shahzad31 authored Oct 17, 2023
1 parent b58b8d7 commit db418ff
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion x-pack/plugins/synthetics/e2e/synthetics/journeys/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export * from './alerting_default.journey';
export * from './global_parameters.journey';
export * from './detail_flyout';
// export * from './alert_rules/default_status_alert.journey';
// export * from './test_now_mode.journey';
export * from './test_now_mode.journey';
// export * from './data_retention.journey';
export * from './monitor_details_page/monitor_summary.journey';
export * from './test_run_details.journey';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ journey(`TestNowMode`, async ({ page, params }) => {
if (
evt.resourceType() === 'fetch' &&
(evt.url().includes('service/monitors/trigger/') ||
evt.url().includes('uptime/service/monitors/run_once'))
evt.url().includes('synthetics/service/monitors/run_once'))
) {
evt
.response()
Expand Down Expand Up @@ -139,7 +139,7 @@ journey(`TestNowMode`, async ({ page, params }) => {
await page.waitForSelector(
'.euiTableRowCell--hideForMobile :has-text("Go to https://www.google.com")'
);
await page.waitForSelector('.euiTableRowCell--hideForMobile :has-text("1.42 s")');
expect(await page.getByTestId('stepDurationText1').first()).toHaveText('1.4 sec');
await page.waitForSelector('text=Complete');
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ export const StepDurationText = ({ step }: { step: JourneyStep }) => {
}, [euiTheme.colors, step.synthetics.step?.duration?.us, step.synthetics.step?.status]);

return (
<EuiText size="s" color={stepDuration.color}>
<EuiText
size="s"
color={stepDuration.color}
data-test-subj={`stepDurationText${step.synthetics.step?.index}`}
>
{stepDuration.text}
</EuiText>
);
Expand Down

0 comments on commit db418ff

Please sign in to comment.