diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/e2e/playwright/stateful/pom/pages/kubernetes_ea_flow.page.ts b/x-pack/solutions/observability/plugins/observability_onboarding/e2e/playwright/stateful/pom/pages/kubernetes_ea_flow.page.ts index db377aa93c844..30bac6ee43508 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/e2e/playwright/stateful/pom/pages/kubernetes_ea_flow.page.ts +++ b/x-pack/solutions/observability/plugins/observability_onboarding/e2e/playwright/stateful/pom/pages/kubernetes_ea_flow.page.ts @@ -10,19 +10,14 @@ import { expect, type Page, type Locator } from '@playwright/test'; export class KubernetesEAFlowPage { page: Page; - private readonly receivedDataIndicatorKubernetes: Locator; private readonly kubernetesAgentExploreDataActionLink: Locator; private readonly codeBlock: Locator; private readonly copyToClipboardButton: Locator; - private readonly logsDataReceivedIndicator: Locator; private readonly exploreLogsButton: Locator; constructor(page: Page) { this.page = page; - this.receivedDataIndicatorKubernetes = this.page - .getByTestId('observabilityOnboardingKubernetesPanelDataProgressIndicator') - .getByText('We are monitoring your cluster'); this.kubernetesAgentExploreDataActionLink = this.page.getByTestId( 'observabilityOnboardingDataIngestStatusActionLink-kubernetes-f4dc26db-1b53-4ea2-a78b-1bfab8ea267c' ); @@ -30,11 +25,9 @@ export class KubernetesEAFlowPage { this.copyToClipboardButton = this.page.getByTestId( 'observabilityOnboardingCopyToClipboardButton' ); - this.logsDataReceivedIndicator = this.page - .getByTestId('observabilityOnboardingKubernetesPanelDataProgressIndicator') - .getByText('We are monitoring your cluster'); - - this.exploreLogsButton = this.page.getByText('Explore logs'); + this.exploreLogsButton = this.page.getByTestId( + 'observabilityOnboardingDataIngestStatusActionLink-logs' + ); } public async assertVisibilityCodeBlock() { @@ -47,15 +40,8 @@ export class KubernetesEAFlowPage { public async assertReceivedDataIndicatorKubernetes() { await expect( - this.receivedDataIndicatorKubernetes, - 'Received data indicator should be visible' - ).toBeVisible(); - } - - public async assertLogsDataReceivedIndicator() { - await expect( - this.logsDataReceivedIndicator, - 'Logs data received indicator should be visible' + this.exploreLogsButton, + 'Explore logs action link should be visible after data is detected' ).toBeVisible(); } diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/e2e/playwright/stateful/pom/pages/otel_host_flow.page.ts b/x-pack/solutions/observability/plugins/observability_onboarding/e2e/playwright/stateful/pom/pages/otel_host_flow.page.ts index 84704894353c1..1cc93dc522832 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/e2e/playwright/stateful/pom/pages/otel_host_flow.page.ts +++ b/x-pack/solutions/observability/plugins/observability_onboarding/e2e/playwright/stateful/pom/pages/otel_host_flow.page.ts @@ -12,7 +12,6 @@ export class OtelHostFlowPage { private readonly exploreLogsButton: Locator; private readonly exploreMetricsButton: Locator; - private readonly dataReceivedIndicator: Locator; constructor(page: Page) { this.page = page; @@ -23,9 +22,6 @@ export class OtelHostFlowPage { this.exploreMetricsButton = this.page.getByTestId( 'observabilityOnboardingDataIngestStatusActionLink-metrics' ); - this.dataReceivedIndicator = this.page - .getByTestId('observabilityOnboardingOtelHostDataProgressIndicator') - .getByText('We are monitoring your host'); } public async selectPlatform(osName: string) { @@ -66,12 +62,8 @@ export class OtelHostFlowPage { public async assertDataReceivedIndicator(): Promise { await expect( - this.dataReceivedIndicator, - 'Data received indicator should be visible' - ).toBeVisible({ timeout: 5 * 60_000 }); - } - - public async assertLogsExplorationButtonVisible() { - await expect(this.exploreLogsButton, 'Logs exploration button should be visible').toBeVisible(); + this.exploreLogsButton, + 'Explore logs action link should be visible after data is detected' + ).toBeVisible(); } } diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/e2e/playwright/stateful/pom/pages/otel_kubernetes_flow.page.ts b/x-pack/solutions/observability/plugins/observability_onboarding/e2e/playwright/stateful/pom/pages/otel_kubernetes_flow.page.ts index 1b604614da30e..44b63bc2b23c8 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/e2e/playwright/stateful/pom/pages/otel_kubernetes_flow.page.ts +++ b/x-pack/solutions/observability/plugins/observability_onboarding/e2e/playwright/stateful/pom/pages/otel_kubernetes_flow.page.ts @@ -12,16 +12,14 @@ export class OtelKubernetesFlowPage { context: BrowserContext; private readonly exploreLogsButton: Locator; - private readonly dataReceivedIndicator: Locator; constructor(page: Page, context: BrowserContext) { this.page = page; this.context = context; - this.exploreLogsButton = this.page.getByText('Explore logs'); - this.dataReceivedIndicator = this.page - .getByTestId('observabilityOnboardingKubernetesPanelDataProgressIndicator') - .getByText('We are monitoring your cluster'); + this.exploreLogsButton = this.page.getByTestId( + 'observabilityOnboardingDataIngestStatusActionLink-logs' + ); } public async copyHelmRepositorySnippetToClipboard() { @@ -88,13 +86,9 @@ export class OtelKubernetesFlowPage { public async assertDataReceivedIndicator(): Promise { await expect( - this.dataReceivedIndicator, - 'Data received indicator should be visible' - ).toBeVisible({ timeout: 5 * 60_000 }); - } - - public async assertLogsExplorationButtonVisible() { - await expect(this.exploreLogsButton, 'Logs exploration button should be visible').toBeVisible(); + this.exploreLogsButton, + 'Explore logs action link should be visible after data is detected' + ).toBeVisible(); } public async clickExploreLogsCTA() {