Skip to content

Commit

Permalink
increasing time
Browse files Browse the repository at this point in the history
  • Loading branch information
manolo committed Jan 30, 2025
1 parent 8ad5ff5 commit 7ce3247
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
14 changes: 10 additions & 4 deletions scripts/pit/its/cc-install-apps.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,17 @@ async function installApp(app, page) {

log(`Waiting for 2 applications to be available...\n`);
const selector = 'vaadin-grid-cell-content span[theme="badge success"]';
await expect(page.locator(selector).nth(0)).toBeVisible({ timeout: 180000 });
const startTime = Date.now();

await expect(page.locator(selector).nth(0)).toBeVisible({ timeout: 280000 });
const firstAppTime = (Date.now() - startTime) / 1000;
await takeScreenshot(page, __filename, 'app-1-available');
log(`First application is available\n`);
await expect(page.locator(selector).nth(1)).toBeVisible({ timeout: 180000 });
log(`First application is available after ${firstAppTime.toFixed(2)} seconds\n`);

await expect(page.locator(selector).nth(1)).toBeVisible({ timeout: 280000 });
const secondAppTime = (Date.now() - startTime) / 1000;
await takeScreenshot(page, __filename, 'app-2-available');
log(`Second application is available\n`);
log(`Second application is available after ${secondAppTime.toFixed(2)} seconds\n`);

await closePage(page);
})();
2 changes: 1 addition & 1 deletion scripts/pit/lib/lib-ccenter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ runPwTests() {
[ -z "$CC_CERT" -o -z "$CC_KEY" ] && NO_TLS=--notls || NO_TLS=""
for f in $CC_TESTS; do
runPlaywrightTests "$PIT_SCR_FOLDER/its/$f" "" "prod" "control-center" --url=https://$CC_CONTROL --login=$CC_EMAIL $NO_TLS || return 1
[ "$f" = cc-install-apps.js ] && reloadIngress && checkTls
[ "$f" = cc-install-apps.js ] && reloadIngress && ls -l && cat *.pem && checkTls
sleep 3
done
}
Expand Down

0 comments on commit 7ce3247

Please sign in to comment.