Skip to content

Commit

Permalink
[Synthetics] Unskip test now mode e2e test (#168932)
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzad31 authored Oct 16, 2023
1 parent eef222f commit b3e66b1
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 b3e66b1

Please sign in to comment.