mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
fix: dev-toolbar test (#10167)
This commit is contained in:
parent
80f8996514
commit
ea990a5614
1 changed files with 3 additions and 3 deletions
|
@ -57,10 +57,10 @@ test.describe('Dev Toolbar', () => {
|
|||
await page.goto(astro.resolveUrl('/view-transition-a'));
|
||||
|
||||
let toolbar = page.locator('astro-dev-toolbar');
|
||||
let appButton = toolbar.locator('button[data-app-id="astro"]');
|
||||
let appButton = toolbar.locator('button[data-app-id="astro:home"]');
|
||||
await appButton.click();
|
||||
|
||||
let astroAppCanvas = toolbar.locator('astro-dev-toolbar-app-canvas[data-app-id="astro"]');
|
||||
let astroAppCanvas = toolbar.locator('astro-dev-toolbar-app-canvas[data-app-id="astro:home"]');
|
||||
let astroToolbarCards = await astroAppCanvas.locator('astro-dev-toolbar-card');
|
||||
await page.waitForSelector('astro-dev-toolbar-card');
|
||||
await expect(astroToolbarCards.first()).toBeVisible();
|
||||
|
@ -69,7 +69,7 @@ test.describe('Dev Toolbar', () => {
|
|||
await page.click('#go-to-b');
|
||||
await consolePromise;
|
||||
|
||||
astroAppCanvas = toolbar.locator('astro-dev-toolbar-app-canvas[data-app-id="astro"]');
|
||||
astroAppCanvas = toolbar.locator('astro-dev-toolbar-app-canvas[data-app-id="astro:home"]');
|
||||
astroToolbarCards = await astroAppCanvas.locator('astro-dev-toolbar-card');
|
||||
await page.waitForSelector('astro-dev-toolbar-card');
|
||||
await expect(astroToolbarCards.first()).toBeVisible();
|
||||
|
|
Loading…
Reference in a new issue