E2E: fix storybook e2e playwright test (#108010)

* fix storybook e2e playwright test

* update action to run if test is modified
This commit is contained in:
Ashley Harrison 2025-07-11 11:50:00 +01:00 committed by GitHub
parent d6f52d5d9b
commit 16183d794c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -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'

View File

@ -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();