feat: re-introduce regression testing suite with pnpm
This commit is contained in:
11
tests/e2e/landing.test.ts
Normal file
11
tests/e2e/landing.test.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { test, expect } from '@playwright/test';
|
||||
|
||||
test('has title and login form', async ({ page }) => {
|
||||
await page.goto('/');
|
||||
|
||||
// Expect a title "to contain" a substring.
|
||||
await expect(page.locator('h1')).toContainText('WHISKYVAULT');
|
||||
|
||||
// Expect login form to be visible
|
||||
await expect(page.getByPlaceholder('name@beispiel.de')).toBeVisible();
|
||||
});
|
||||
Reference in New Issue
Block a user