Enhance Git LFS validation in CI workflow and update Docker Compose configuration
Some checks failed
Publish FaceAI Container / publish (push) Failing after 4s

This commit is contained in:
MaddoScientisto 2026-04-19 12:10:18 +02:00
commit f19b8e20ff
5 changed files with 63 additions and 5 deletions

View file

@ -121,6 +121,31 @@ test('launches the live FaceAI app with race storage metadata and a styled heade
expect(consoleErrors.find((entry) => entry.includes('[FaceAI] Invalid race data:')) || '').toBe('');
});
test('returns to the live race page from FaceAI without leaving the legacy spinner stuck', async ({ page }) => {
await openLiveFaceAi(page);
await page.getByRole('button', { name: /Torna alla pagina gara|Back to the race page/i }).click();
await page.waitForURL((url) => {
return url.toString().startsWith(LIVE_SITE_BASE_URL) && !url.toString().startsWith(LIVE_FACEAI_BASE_URL);
}, {
timeout: 60 * 1000
});
await expect(page.locator('form[onsubmit="return searching()"]')).toBeVisible();
await expect(page.locator('#faceaiLaunchButton')).toBeVisible();
const bodyState = await page.locator('body').evaluate((element) => {
return {
className: element.className,
ariaBusy: element.getAttribute('aria-busy')
};
});
expect(bodyState.className).not.toContain('loading');
expect(bodyState.ariaBusy).not.toBe('true');
});
test.skip(!LIVE_SITE_RUN_UPLOAD_FLOW, 'Set LIVE_SITE_RUN_UPLOAD_FLOW=1 to exercise the live upload flow.');
test('accepts the supplied portrait image for the live upload flow', async ({ page }) => {