create-app: update template e2e test to work with guest auth

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2024-03-18 19:04:03 +01:00
parent 51123ab083
commit cb40c335a6
2 changed files with 6 additions and 1 deletions
@@ -19,5 +19,10 @@ import { test, expect } from '@playwright/test';
test('App should render the welcome page', async ({ page }) => {
await page.goto('/');
const enterButton = page.getByRole('button', { name: 'Enter' });
await expect(enterButton).toBeVisible();
await enterButton.click();
await expect(page.getByText('My Company Catalog')).toBeVisible();
});
@@ -32,7 +32,7 @@ export default defineConfig({
? []
: [
{
command: 'yarn start',
command: 'yarn dev',
port: 3000,
reuseExistingServer: true,
timeout: 60_000,