mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
# Backport This will backport the following commits from `main` to `8.11`: - [[Synthetics] Unskip test now mode e2e test (#168932)](https://github.com/elastic/kibana/pull/168932) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Shahzad","email":"shahzad31comp@gmail.com"},"sourceCommit":{"committedDate":"2023-10-16T19:04:22Z","message":"[Synthetics] Unskip test now mode e2e test (#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 (#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 (#168932)","sha":"b3e66b1e0abfbf10e51bd77abcdf2bb7e3c1e622"}}]}] BACKPORT--> Co-authored-by: Shahzad <shahzad31comp@gmail.com>
This commit is contained in:
parent
b58b8d7b7e
commit
db418fff79
3 changed files with 8 additions and 4 deletions
|
@ -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';
|
||||
|
|
|
@ -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()
|
||||
|
@ -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');
|
||||
});
|
||||
|
||||
|
|
|
@ -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>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue