Removes a duplicate from the upload script and its backups
The script body had been saved twice, so a production upload would have run twice and left web.config backups on the host. Browser tests also get longer limits on the slow CI runner; the page behaves the same. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+11
-2
@@ -1,7 +1,12 @@
|
||||
import { afterAll, beforeAll, describe, expect, it } from 'vitest';
|
||||
import type { Page } from 'playwright-core';
|
||||
import sitePages from '../src/sitePages.ts';
|
||||
import { eventually, openPage, waitForHydration } from './support/browser.ts';
|
||||
import {
|
||||
eventually,
|
||||
inCi,
|
||||
openPage,
|
||||
waitForHydration,
|
||||
} from './support/browser.ts';
|
||||
import { startServer } from './support/server.ts';
|
||||
|
||||
// FR-PR-09, FR-PR-10, V-D6: Reveal is zichtbaar in de HTML en in de eerste
|
||||
@@ -168,9 +173,13 @@ describe('Reveal bij het scrollen', () => {
|
||||
await target!.evaluate((element) =>
|
||||
element.scrollIntoView({ block: 'center', behavior: 'instant' }),
|
||||
);
|
||||
// De overgang duurt 0,8 s; 1,5 s laat lokaal ruimte voor de
|
||||
// IntersectionObserver. Op de Pi (CI-run 598: opacity 0,987 na 1,5 s)
|
||||
// vertraagt de zwaar belaste hoofdthread die, dus daar ruimer: een
|
||||
// vastgelopen overgang haalt 10 s ook niet.
|
||||
await expect
|
||||
.poll(() => target!.evaluate((e) => getComputedStyle(e).opacity), {
|
||||
timeout: 1500,
|
||||
timeout: inCi ? 10_000 : 1500,
|
||||
interval: 50,
|
||||
})
|
||||
.toBe('1');
|
||||
|
||||
Reference in New Issue
Block a user