diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 8e01b07..35715d9 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -25,24 +25,12 @@ jobs: npm ci npm run validate - - name: Diagnostiquer le téléchargement Chromium - timeout-minutes: 4 - run: | - set -eu - curl --fail --location \ - --connect-timeout 15 \ - --max-time 180 \ - --output /dev/null \ - --write-out '\nHTTP=%{http_code} destination=%{url_effective}\n' \ - 'https://cdn.playwright.dev/builds/cft/156.0.8078.4/linux64/chrome-headless-shell-linux64.zip' - - name: Installer Chromium pour les tests timeout-minutes: 20 env: CI: "true" # Allow slow CDN connections; Playwright keeps its built-in retries. PLAYWRIGHT_DOWNLOAD_CONNECTION_TIMEOUT: "180000" - DEBUG: "pw:install" run: | set -eu npx playwright install --with-deps --only-shell chromium diff --git a/src/App.svelte b/src/App.svelte index ed17a07..8455c1a 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -124,6 +124,7 @@ .update { display: flex; + flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--gap); diff --git a/tests/e2e/parcours.spec.js b/tests/e2e/parcours.spec.js index 71c251f..4d78254 100644 --- a/tests/e2e/parcours.spec.js +++ b/tests/e2e/parcours.spec.js @@ -63,6 +63,10 @@ test('consultation, correction, recalcul, copie et statistiques à 320 px', asyn await page.getByRole('button',{name:'Consulter les statistiques'}).click(); await expect(page.getByTestId('stats-worked')).toHaveText('9h00'); expect(await page.evaluate(() => document.documentElement.scrollWidth <= innerWidth)).toBe(true); + // Wider or larger fonts must also fit the backup reminder on CI and mobile. + await expect(page.locator('.update')).toContainText('Sauvegarde à vérifier'); + await page.addStyleTag({content:'.update { font-family: monospace; font-size: 24px; }'}); + expect(await page.evaluate(() => document.documentElement.scrollWidth <= innerWidth)).toBe(true); }); test('date conservée, rechargement et Retour depuis les trois nouvelles pages', async ({page}) => {