Improve the UI and tests

This commit is contained in:
Urtzi Alfaro
2025-11-15 21:21:06 +01:00
parent 86d704b354
commit 54b7a5e080
44 changed files with 2268 additions and 1414 deletions

View File

@@ -1,12 +1,18 @@
import { test, expect } from '@playwright/test';
import { waitForApiCall } from '../helpers/utils';
import { waitForApiCall, acceptCookieConsent } from '../helpers/utils';
test.describe('Purchase Order Management', () => {
// Use authenticated state
test.use({ storageState: 'tests/.auth/user.json' });
test.beforeEach(async ({ page }) => {
// Accept cookie consent if present
await acceptCookieConsent(page);
});
test('should display action queue with pending purchase orders', async ({ page }) => {
await page.goto('/app/dashboard');
await acceptCookieConsent(page);
// Wait for page to load
await page.waitForLoadState('networkidle');