mirror of https://github.com/grafana/grafana.git
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:
parent
d6f52d5d9b
commit
16183d794c
|
|
@ -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'
|
||||
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue