Small improvements
This commit is contained in:
parent
a7c04b2bd8
commit
05c8a39bd8
19 changed files with 119 additions and 95 deletions
|
|
@ -71,7 +71,7 @@ test('starts the WebGPU garden and accepts drawing input', async ({ page }) => {
|
|||
const startButton = page.getByRole('button', { name: 'Start' });
|
||||
await expect(startButton).toBeVisible();
|
||||
await expect(startButton).toBeEnabled({ timeout: 30_000 });
|
||||
await startButton.click();
|
||||
await page.keyboard.press('Enter');
|
||||
await expect(page.locator('body')).not.toHaveClass(/is-loading/, {
|
||||
timeout: 30_000,
|
||||
});
|
||||
|
|
@ -146,7 +146,7 @@ test('syncs the selected vibe with the URI', async ({ page }) => {
|
|||
|
||||
await expect(page).toHaveURL(/vibe=bone-archive/);
|
||||
|
||||
await page.locator('.next-vibe').click();
|
||||
await page.getByRole('button', { name: 'Next vibe' }).click();
|
||||
await expect(page).toHaveURL(/vibe=pelagic-caustics/);
|
||||
|
||||
await page.goBack();
|
||||
|
|
@ -160,8 +160,8 @@ test('keeps audio focus outlines scoped to the active control', async ({ page })
|
|||
await expect(page.locator('body')).not.toHaveClass(/is-loading/);
|
||||
|
||||
const audioControl = page.locator('.audio-control');
|
||||
const soundButton = page.locator('button.sound');
|
||||
const volumeSlider = page.locator('.volume-slider');
|
||||
const soundButton = page.getByRole('button', { name: /audio/i });
|
||||
const volumeSlider = page.getByRole('slider', { name: 'Master volume' });
|
||||
|
||||
await soundButton.click();
|
||||
await expect(audioControl).toHaveCSS('outline-style', 'none');
|
||||
|
|
@ -201,7 +201,7 @@ test('keeps the config overlay scrollable and dismissible on mobile', async ({
|
|||
timeout: 30_000,
|
||||
});
|
||||
|
||||
const settingsButton = page.locator('button.settings');
|
||||
const settingsButton = page.getByRole('button', { name: 'Show config overlay' });
|
||||
await settingsButton.click();
|
||||
|
||||
const pane = page.locator('.config-pane');
|
||||
|
|
|
|||
Loading…
Reference in a new issue