Fixed CI
Fixed a test
This commit is contained in:
@@ -25,24 +25,12 @@ jobs:
|
|||||||
npm ci
|
npm ci
|
||||||
npm run validate
|
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
|
- name: Installer Chromium pour les tests
|
||||||
timeout-minutes: 20
|
timeout-minutes: 20
|
||||||
env:
|
env:
|
||||||
CI: "true"
|
CI: "true"
|
||||||
# Allow slow CDN connections; Playwright keeps its built-in retries.
|
# Allow slow CDN connections; Playwright keeps its built-in retries.
|
||||||
PLAYWRIGHT_DOWNLOAD_CONNECTION_TIMEOUT: "180000"
|
PLAYWRIGHT_DOWNLOAD_CONNECTION_TIMEOUT: "180000"
|
||||||
DEBUG: "pw:install"
|
|
||||||
run: |
|
run: |
|
||||||
set -eu
|
set -eu
|
||||||
npx playwright install --with-deps --only-shell chromium
|
npx playwright install --with-deps --only-shell chromium
|
||||||
|
|||||||
@@ -124,6 +124,7 @@
|
|||||||
|
|
||||||
.update {
|
.update {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
gap: var(--gap);
|
gap: var(--gap);
|
||||||
|
|||||||
@@ -63,6 +63,10 @@ test('consultation, correction, recalcul, copie et statistiques à 320 px', asyn
|
|||||||
await page.getByRole('button',{name:'Consulter les statistiques'}).click();
|
await page.getByRole('button',{name:'Consulter les statistiques'}).click();
|
||||||
await expect(page.getByTestId('stats-worked')).toHaveText('9h00');
|
await expect(page.getByTestId('stats-worked')).toHaveText('9h00');
|
||||||
expect(await page.evaluate(() => document.documentElement.scrollWidth <= innerWidth)).toBe(true);
|
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}) => {
|
test('date conservée, rechargement et Retour depuis les trois nouvelles pages', async ({page}) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user