diff --git a/x-pack/platform/plugins/shared/streams_app/ui_tests/fixtures/page_objects/streams_app.ts b/x-pack/platform/plugins/shared/streams_app/ui_tests/fixtures/page_objects/streams_app.ts index 2fbcba51fcfa8..0e2ca03796124 100644 --- a/x-pack/platform/plugins/shared/streams_app/ui_tests/fixtures/page_objects/streams_app.ts +++ b/x-pack/platform/plugins/shared/streams_app/ui_tests/fixtures/page_objects/streams_app.ts @@ -34,28 +34,24 @@ export class StreamsApp { await this.page.getByRole('tab', { name: 'Dashboards' }).click(); } - async gotoManageStream(stream: string) { - this.gotoStream(stream); - await this.page.getByRole('link', { name: 'Manage stream' }).click(); - } - - async gotoCreateChildStream(parent: string) { - await this.gotoManageStream(parent); + async gotoCreateChildStream(stream: string) { + await this.gotoStream(stream); + await this.page.getByRole('tab', { name: 'Partitioning' }).click(); await this.page.getByRole('button', { name: 'Create child stream' }).click(); } async gotoDataRetentionTab(stream: string) { - await this.gotoManageStream(stream); + await this.gotoStream(stream); await this.page.getByRole('tab', { name: 'Data retention' }).click(); } - async gotoExtractFieldTab(stream: string) { - await this.gotoManageStream(stream); - await this.page.getByRole('tab', { name: 'Extract field' }).click(); + async gotoProcessingTab(stream: string) { + await this.gotoStream(stream); + await this.page.getByRole('tab', { name: 'Processing' }).click(); } async gotoSchemaEditorTab(stream: string) { - await this.gotoManageStream(stream); + await this.gotoStream(stream); await this.page.getByRole('tab', { name: 'Schema editor' }).click(); } } diff --git a/x-pack/platform/plugins/shared/streams_app/ui_tests/tests/classic.spec.ts b/x-pack/platform/plugins/shared/streams_app/ui_tests/tests/classic.spec.ts index 522aec286e8fa..6c469705bbc67 100644 --- a/x-pack/platform/plugins/shared/streams_app/ui_tests/tests/classic.spec.ts +++ b/x-pack/platform/plugins/shared/streams_app/ui_tests/tests/classic.spec.ts @@ -64,7 +64,7 @@ test.describe('Classic Streams', { tag: ['@ess', '@svlOblt'] }, () => { await page.getByTestId('toastCloseButton').click(); // Update field extraction - await pageObjects.streams.gotoExtractFieldTab(DATA_STREAM_NAME); + await pageObjects.streams.gotoProcessingTab(DATA_STREAM_NAME); await page.getByText('Add a processor').click(); await page.locator('input[name="field"]').fill('body.text'); @@ -75,36 +75,5 @@ test.describe('Classic Streams', { tag: ['@ess', '@svlOblt'] }, () => { await expect(page.getByText("Stream's processors updated")).toBeVisible(); await page.getByTestId('toastCloseButton').click(); - - // Add dashboard - await pageObjects.streams.gotoStreamDashboard(DATA_STREAM_NAME); - await page.getByRole('button', { name: 'Add a dashboard' }).click(); - await expect( - page - .getByTestId('streamsAppAddDashboardFlyoutDashboardsTable') - .getByRole('button', { name: 'Some Dashboard' }) - ).toBeVisible(); - // eslint-disable-next-line playwright/no-nth-methods - await page.getByRole('cell', { name: 'Select row' }).locator('div').first().click(); - await page.getByRole('button', { name: 'Add dashboard' }).click(); - await expect( - page - .getByTestId('streamsAppStreamDetailDashboardsTable') - .getByTestId('streamsAppDashboardColumnsLink') - ).toHaveText('Some Dashboard'); - - // remove dashboard - await page - .getByTestId('streamsAppStreamDetailDashboardsTable') - .getByRole('cell', { name: 'Select row' }) - .locator('div') - // eslint-disable-next-line playwright/no-nth-methods - .first() - .click(); - - await page.getByRole('button', { name: 'Unlink selected' }).click(); - await expect( - page.getByTestId('streamsAppStreamDetailDashboardsTable').getByText('No items found') - ).toBeVisible(); }); }); diff --git a/x-pack/platform/plugins/shared/streams_app/ui_tests/tests/wired.spec.ts b/x-pack/platform/plugins/shared/streams_app/ui_tests/tests/wired.spec.ts index 3d182eca30b06..ef46f42c773b6 100644 --- a/x-pack/platform/plugins/shared/streams_app/ui_tests/tests/wired.spec.ts +++ b/x-pack/platform/plugins/shared/streams_app/ui_tests/tests/wired.spec.ts @@ -54,7 +54,7 @@ test.describe('Wired Streams', { tag: ['@ess', '@svlOblt'] }, () => { refresh: 'wait_for', }); - await pageObjects.streams.gotoExtractFieldTab('logs.nginx'); + await pageObjects.streams.gotoProcessingTab('logs.nginx'); await page.getByText('Add a processor').click(); await page.locator('input[name="field"]').fill('body.text'); @@ -82,36 +82,5 @@ test.describe('Wired Streams', { tag: ['@ess', '@svlOblt'] }, () => { await expect(page.getByText('Mapped', { exact: true })).toBeVisible(); await page.getByTestId('toastCloseButton').click(); - - // Add dashboard - await pageObjects.streams.gotoStreamDashboard('logs.nginx'); - await page.getByRole('button', { name: 'Add a dashboard' }).click(); - await expect( - page - .getByTestId('streamsAppAddDashboardFlyoutDashboardsTable') - .getByRole('button', { name: 'Some Dashboard' }) - ).toBeVisible(); - // eslint-disable-next-line playwright/no-nth-methods - await page.getByRole('cell', { name: 'Select row' }).locator('div').first().click(); - await page.getByRole('button', { name: 'Add dashboard' }).click(); - await expect( - page - .getByTestId('streamsAppStreamDetailDashboardsTable') - .getByTestId('streamsAppDashboardColumnsLink') - ).toHaveText('Some Dashboard'); - - // remove dashboard - await page - .getByTestId('streamsAppStreamDetailDashboardsTable') - .getByRole('cell', { name: 'Select row' }) - .locator('div') - // eslint-disable-next-line playwright/no-nth-methods - .first() - .click(); - - await page.getByRole('button', { name: 'Unlink selected' }).click(); - await expect( - page.getByTestId('streamsAppStreamDetailDashboardsTable').getByText('No items found') - ).toBeVisible(); }); });