From 16183d794c49af7d386381e21a9eda06a9e49023 Mon Sep 17 00:00:00 2001 From: Ashley Harrison Date: Fri, 11 Jul 2025 11:50:00 +0100 Subject: [PATCH] E2E: fix storybook e2e playwright test (#108010) * fix storybook e2e playwright test * update action to run if test is modified --- .github/workflows/storybook-verification-playwright.yml | 2 ++ e2e-playwright/storybook/verify.spec.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/storybook-verification-playwright.yml b/.github/workflows/storybook-verification-playwright.yml index e8391259f55..e3924a67a85 100644 --- a/.github/workflows/storybook-verification-playwright.yml +++ b/.github/workflows/storybook-verification-playwright.yml @@ -4,6 +4,7 @@ on: pull_request: paths: - 'packages/grafana-ui/**' + - 'e2e-playwright/storybook/**' - '!docs/**' - '!*.md' push: @@ -11,6 +12,7 @@ on: - main paths: - 'packages/grafana-ui/**' + - 'e2e-playwright/storybook/**' - '!docs/**' - '!*.md' diff --git a/e2e-playwright/storybook/verify.spec.ts b/e2e-playwright/storybook/verify.spec.ts index 1e24b83532d..9292cae4060 100644 --- a/e2e-playwright/storybook/verify.spec.ts +++ b/e2e-playwright/storybook/verify.spec.ts @@ -8,7 +8,7 @@ test.describe( }, () => { test('Loads the button story correctly', async ({ page }) => { - await page.goto('?path=/story/buttons-button--basic'); + await page.goto('?path=/story/inputs-button--basic'); const iframe = page.locator('#storybook-preview-iframe'); await expect(iframe).toBeVisible(); const iframeBody = iframe.contentFrame();