Skip to content

Commit

Permalink
fix: dev-toolbar test (#10167)
Browse files Browse the repository at this point in the history
  • Loading branch information
Princesseuh authored Feb 20, 2024
1 parent 80f8996 commit ea990a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/astro/e2e/dev-toolbar.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand Down

0 comments on commit ea990a5

Please sign in to comment.