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:
@@ -37,6 +37,11 @@ afterAll(async () => {
|
||||
browser = undefined;
|
||||
});
|
||||
|
||||
// Op de CI-runner zijn de wachttijden van de browsertests 3 tot 6 keer zo
|
||||
// lang als lokaal (zie testTimeout in vitest.e2e.config.ts)
|
||||
export const inCi = Boolean(process.env.CI);
|
||||
const CI_TIMEOUT = 90_000;
|
||||
|
||||
export interface OpenedPage {
|
||||
page: Page;
|
||||
status: number;
|
||||
@@ -86,6 +91,11 @@ export async function openPage(
|
||||
reducedMotion,
|
||||
});
|
||||
contexts.add(context);
|
||||
// Playwright wacht standaard 30 s op een navigatie of een voorwaarde. Op de
|
||||
// CI-runner (Raspberry Pi) duurde het laden van een pagina met foto's of
|
||||
// de hydratatie daar soms langer (CI-run 598: goto en waitForHydration
|
||||
// op 30 s afgebroken). Lokaal blijft 30 s.
|
||||
if (inCi) context.setDefaultTimeout(CI_TIMEOUT);
|
||||
const page = await context.newPage();
|
||||
|
||||
const messages: string[] = [];
|
||||
@@ -137,4 +147,4 @@ export async function waitForHydration(page: Page) {
|
||||
// Vitest kent de wachtende matchers van Playwright niet; expect.poll herhaalt
|
||||
// de vraag aan de pagina tot het antwoord klopt of de tijd om is.
|
||||
export const eventually = <T>(read: () => Promise<T>) =>
|
||||
expect.poll(read, { timeout: 15_000, interval: 100 });
|
||||
expect.poll(read, { timeout: inCi ? CI_TIMEOUT : 15_000, interval: 100 });
|
||||
|
||||
Reference in New Issue
Block a user