feat: update frontend paths to include trailing slashes for consistency
This commit is contained in:
@@ -36,7 +36,7 @@ async function waitForAppReady(page: Page) {
|
||||
|
||||
// Utility per fare login completo come validatore
|
||||
async function loginAsValidator(page: Page, validatorBadge: string = '0008988288') {
|
||||
await page.goto('/');
|
||||
await page.goto('/badge/');
|
||||
await waitForAppReady(page);
|
||||
|
||||
// Passo 1: Passa il badge
|
||||
@@ -69,7 +69,7 @@ async function loginAsValidator(page: Page, validatorBadge: string = '0008988288
|
||||
test.describe('Flusso Validatore', () => {
|
||||
|
||||
test('01 - mostra schermata attesa badge validatore', async ({ page }) => {
|
||||
await page.goto('/');
|
||||
await page.goto('/badge/');
|
||||
await waitForAppReady(page);
|
||||
|
||||
await expect(page.getByText(/passa.*badge/i)).toBeVisible();
|
||||
@@ -80,7 +80,7 @@ test.describe('Flusso Validatore', () => {
|
||||
});
|
||||
|
||||
test('02 - scansione badge mostra campo password', async ({ page }) => {
|
||||
await page.goto('/');
|
||||
await page.goto('/badge/');
|
||||
await waitForAppReady(page);
|
||||
|
||||
// Scansiona un badge
|
||||
@@ -106,7 +106,7 @@ test.describe('Flusso Validatore', () => {
|
||||
});
|
||||
|
||||
test('04 - password errata mostra errore', async ({ page }) => {
|
||||
await page.goto('/');
|
||||
await page.goto('/badge/');
|
||||
await waitForAppReady(page);
|
||||
|
||||
// Scansiona badge
|
||||
@@ -126,7 +126,7 @@ test.describe('Flusso Validatore', () => {
|
||||
});
|
||||
|
||||
test('05 - pulsante annulla torna a attesa badge', async ({ page }) => {
|
||||
await page.goto('/');
|
||||
await page.goto('/badge/');
|
||||
await waitForAppReady(page);
|
||||
|
||||
// Scansiona badge
|
||||
@@ -257,7 +257,7 @@ test.describe('Conferma Ingresso', () => {
|
||||
test.describe('Debug Page', () => {
|
||||
|
||||
test('11 - pagina debug accessibile', async ({ page }) => {
|
||||
await page.goto('/debug');
|
||||
await page.goto('/badge/debug');
|
||||
|
||||
await expect(page.getByRole('heading', { name: 'Debug RFID' })).toBeVisible();
|
||||
console.log('[E2E] ✓ Pagina debug accessibile');
|
||||
|
||||
Reference in New Issue
Block a user