Skip to content

Commit 8bb30e8

Browse files
committed
updates after running with Windows
1 parent c7af8a0 commit 8bb30e8

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

scripts/pit/its/cc-install-apps.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ async function takeScreenshot(page, name) {
4646
});
4747
const context = await browser.newContext({ ignoreHTTPSErrors: ignoreHTTPSErrors });
4848

49+
if(process.env.CC_CERT){
4950
fs.writeFileSync('domain.pem', `${process.env.CC_CERT.replace(/\\n/g, "\n")}\n${process.env.CC_KEY.replace(/\\n/g, "\n")}`);
51+
}
5052

5153
const page = await context.newPage();
5254
page.on('console', msg => console.log("> CONSOLE:", (msg.text() + ' - ' + msg.location().url).replace(/\s+/g, ' ')));

scripts/pit/lib/lib-k8s-kind.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ stopCloudProvider() {
2020
##
2121
# $1: command
2222
setSuid() {
23+
isWindows && return 0
2324
W=`which $1` || return 1
2425
R=`realpath $W` || return 1
2526
O=`ls -l "$R" | awk '{print $3}'`

scripts/pit/lib/lib-playwright.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ PIT_SCR_FOLDER=`computeAbsolutePath`
66
isInstalledPlaywright() {
77
_dir=`dirname "$1"`
88
(cd "$_dir" && \
9-
echo -e "const { chromium } = require('playwright');\n" | "$NODE" - 2>/dev/null)
9+
echo -e "const { chromium } = require('@playwright/test');\n" | "$NODE" - 2>/dev/null)
1010
}
1111

1212
## Install playwright in the folder of the test node-script

0 commit comments

Comments
 (0)