Skip to content

Commit fb584d6

Browse files
[Synthetics] reenable e2e tests (#134238)
* synthetics - reenable e2e tests * renable alert tests * adjust alert test * Update x-pack/plugins/synthetics/e2e/journeys/index.ts * check enabled state * uncomment tests * add remote console * check that we're on the add monitor page * add error log * log html * add error * show experimental locations * update tests * comment out tests * Update x-pack/plugins/synthetics/e2e/journeys/monitor_management.journey.ts * Update x-pack/plugins/synthetics/public/legacy_uptime/components/monitor_management/loader/loader.tsx * adjust add_monitor page * Update x-pack/plugins/synthetics/e2e/page_objects/monitor_management.tsx * enable more tests Co-authored-by: Kibana Machine <[email protected]>
1 parent f0f2a05 commit fb584d6

File tree

7 files changed

+15
-16
lines changed

7 files changed

+15
-16
lines changed

x-pack/plugins/synthetics/e2e/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ async function config({ readConfigFile }: FtrConfigProviderContext) {
6363
: 'localKibanaIntegrationTestsUser'
6464
}`,
6565
`--xpack.uptime.service.password=${servicePassword}`,
66+
`--xpack.uptime.service.showExperimentalLocations=${true}`,
6667
],
6768
},
6869
};

x-pack/plugins/synthetics/e2e/journeys/alerts/status_alert_flyouts_in_alerting_app.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ journey('StatusFlyoutInAlertingApp', async ({ page, params }) => {
2727
step('Open monitor status flyout', async () => {
2828
await page.click(byTestId('createFirstRuleButton'));
2929
await waitForLoadingToFinish({ page });
30-
await page.click(byTestId('"xpack.synthetics.alerts.monitorStatus-SelectOption"'));
30+
await page.click(byTestId('"xpack.uptime.alerts.monitorStatus-SelectOption"'));
3131
await waitForLoadingToFinish({ page });
3232
await assertText({ page, text: 'This alert will apply to approximately 0 monitors.' });
3333
});
@@ -61,7 +61,7 @@ journey('StatusFlyoutInAlertingApp', async ({ page, params }) => {
6161
step('Open tls alert flyout', async () => {
6262
await page.click(byTestId('createFirstRuleButton'));
6363
await waitForLoadingToFinish({ page });
64-
await page.click(byTestId('"xpack.synthetics.alerts.tlsCertificate-SelectOption"'));
64+
await page.click(byTestId('"xpack.uptime.alerts.tlsCertificate-SelectOption"'));
6565
await waitForLoadingToFinish({ page });
6666
await assertText({ page, text: 'has a certificate expiring within' });
6767
});

x-pack/plugins/synthetics/e2e/journeys/alerts/tls_alert_flyouts_in_alerting_app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ journey('TlsFlyoutInAlertingApp', async ({ page, params }) => {
2727
step('Open tls alert flyout', async () => {
2828
await page.click(byTestId('createFirstRuleButton'));
2929
await waitForLoadingToFinish({ page });
30-
await page.click(byTestId('"xpack.synthetics.alerts.tlsCertificate-SelectOption"'));
30+
await page.click(byTestId('"xpack.uptime.alerts.tlsCertificate-SelectOption"'));
3131
await waitForLoadingToFinish({ page });
3232
await assertText({ page, text: 'has a certificate expiring within' });
3333
});

x-pack/plugins/synthetics/e2e/journeys/data_view_permissions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ journey('DataViewPermissions', async ({ page, params }) => {
3838
await page.goto(`${baseUrl}?${queryParams}`, {
3939
waitUntil: 'networkidle',
4040
});
41-
await login.loginToKibana('obs_read_user', 'changeme');
41+
await login.loginToKibana('viewer_user', 'changeme');
4242
});
4343

4444
step('Click explore data button', async () => {

x-pack/plugins/synthetics/e2e/journeys/index.ts

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,15 @@
44
* 2.0; you may not use this file except in compliance with the Elastic License
55
* 2.0.
66
*/
7-
7+
export * from './alerts';
88
// export * from './synthetics'; // TODO: Enable these in a follow up PR
9-
// export * from './data_view_permissions'; // TODO: Enable these in a follow up PR
9+
export * from './data_view_permissions';
1010
export * from './uptime.journey';
1111
export * from './step_duration.journey';
12-
// export * from './alerts'; // TODO: Enable these in a follow up PR
13-
// export * from './read_only_user'; // TODO: Enable these in a follow up PR
14-
// export * from './monitor_details.journey'; // TODO: Enable these in a follow up PR
15-
// export * from './monitor_name.journey'; // TODO: Enable these in a follow up PR
16-
// export * from './monitor_management.journey'; // TODO: Enable these in a follow up PR
17-
// export * from './monitor_management_enablement.journey'; // TODO: Enable these in a follow up PR
18-
// export * from './monitor_details'; // TODO: Enable these in a follow up PR
12+
export * from './read_only_user';
13+
export * from './monitor_details.journey';
14+
export * from './monitor_name.journey';
15+
export * from './monitor_management.journey';
16+
export * from './monitor_management_enablement.journey';
17+
export * from './monitor_details';
1918
export * from './locations';

x-pack/plugins/synthetics/e2e/journeys/monitor_management_enablement.journey.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
* 2.0; you may not use this file except in compliance with the Elastic License
55
* 2.0.
66
*/
7-
87
import { journey, step, expect, before, after, Page } from '@elastic/synthetics';
98
import { monitorManagementPageProvider } from '../page_objects/monitor_management';
109

@@ -58,7 +57,7 @@ journey(
5857
});
5958

6059
step('login to Kibana', async () => {
61-
await uptime.loginToKibana('obs_admin_user', 'changeme');
60+
await uptime.loginToKibana('editor_user', 'changeme');
6261
const invalid = await page.locator(
6362
`text=Username or password is incorrect. Please try again.`
6463
);

x-pack/plugins/synthetics/e2e/journeys/read_only_user/monitor_management.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ journey(
2323
});
2424

2525
step('login to Kibana', async () => {
26-
await uptime.loginToKibana('obs_read_user', 'changeme');
26+
await uptime.loginToKibana('viewer_user', 'changeme');
2727
});
2828

2929
step('Adding monitor is disabled', async () => {

0 commit comments

Comments
 (0)