hide "preview" nav item on desktop

This commit is contained in:
2024-10-12 01:50:08 -05:00
parent ff98c46ed2
commit 424db4eaa1
7 changed files with 33 additions and 14 deletions

View File

@@ -24,3 +24,9 @@ test('mobile page has single-column layout', async ({ page }) => {
await page.goto('/');
await expect(page.locator('#pane-preview')).toBeHidden();
});
test('mobile page has preview nav item', async ({ page }) => {
await page.goto('/');
await page.getByText('show navigation').click();
await expect(page.getByRole('tab').filter({ hasText: 'preview' })).toBeVisible();
});