From 17c056d3f953966623d9271411f3a6cdccb90e02 Mon Sep 17 00:00:00 2001 From: edler-san <19165931+edler-san@users.noreply.github.com> Date: Thu, 30 Jan 2025 10:40:52 +0100 Subject: [PATCH] Adjust timeout for windows --- scripts/pit/its/cc-identity-management.js | 2 +- scripts/pit/its/cc-localization.js | 3 +-- scripts/pit/its/test-utils.js | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/pit/its/cc-identity-management.js b/scripts/pit/its/cc-identity-management.js index 397fdd0e..7d5dc21d 100644 --- a/scripts/pit/its/cc-identity-management.js +++ b/scripts/pit/its/cc-identity-management.js @@ -1,5 +1,5 @@ const { expect} = require('@playwright/test'); -const {log, args, createPage, closePage, takeScreenshot, waitForServerReady, err} = require('./test-utils'); +const {log, err, args, createPage, closePage, takeScreenshot, waitForServerReady, err} = require('./test-utils'); (async () => { const arg = args(); diff --git a/scripts/pit/its/cc-localization.js b/scripts/pit/its/cc-localization.js index a7311b9e..e3cf0dd2 100644 --- a/scripts/pit/its/cc-localization.js +++ b/scripts/pit/its/cc-localization.js @@ -1,7 +1,6 @@ const { expect} = require('@playwright/test'); const fs = require('fs'); -const path = require('path'); -const {log, args, createPage, closePage, takeScreenshot, waitForServerReady, run} = require('./test-utils'); +const {log, args, err, createPage, closePage, takeScreenshot, waitForServerReady, run} = require('./test-utils'); const { assert } = require('console'); (async () => { diff --git a/scripts/pit/its/test-utils.js b/scripts/pit/its/test-utils.js index a817fe47..0ce29c53 100644 --- a/scripts/pit/its/test-utils.js +++ b/scripts/pit/its/test-utils.js @@ -82,7 +82,7 @@ async function takeScreenshot(page, name, descr) { const scr = path.basename(name); const cnt = String(++sscount).padStart(2, "0"); const file = `${screenshots}/${scr}-${cnt}-${descr}.png`; - await page.waitForTimeout(1000); + await page.waitForTimeout(10000); await page.screenshot({ path: file }); out(` 📸 Screenshot taken: ${file}\n`); }