From 07a5f8fd20d07cc6330cb46ee0eb2ac1b2a939d9 Mon Sep 17 00:00:00 2001 From: KikoUK Date: Thu, 23 Mar 2023 14:27:02 +0000 Subject: [PATCH] [ACS-4922] Try using node modules http server lib --- .github/actions/run-e2e/action.yml | 2 +- e2e/playwright/shared/base-config/global.setup.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/actions/run-e2e/action.yml b/.github/actions/run-e2e/action.yml index 9992daef1..078d6eb29 100644 --- a/.github/actions/run-e2e/action.yml +++ b/.github/actions/run-e2e/action.yml @@ -19,7 +19,7 @@ runs: shell: bash run: | ./node_modules/.bin/tsc -p "./e2e/$E2E_TSCONFIG" || exit 1; - ./node_modules/.bin/http-server -c-1 $CONTENT_CE_DIST_PATH -p 4200 > /dev/null &\ + npx http-server -c-1 $CONTENT_CE_DIST_PATH -p 4200 > /dev/null &\ if [ ${{ inputs.test-runner }} == "playwright" ]; then echo "Running playwright tests with options ${{ inputs.options }}" diff --git a/e2e/playwright/shared/base-config/global.setup.ts b/e2e/playwright/shared/base-config/global.setup.ts index 6e8260735..785b3e2f5 100644 --- a/e2e/playwright/shared/base-config/global.setup.ts +++ b/e2e/playwright/shared/base-config/global.setup.ts @@ -37,6 +37,7 @@ async function globalSetup(config: FullConfig) { const loginPage = new LoginPage(page); fs.mkdirSync(`./storage-state`, { recursive: true }); + await page.setDefaultNavigationTimeout(300000); await page.goto(baseUrl); await loginPage.loginUser({ username: acsAdminUser, password: acsAdminUserPassword }, { withNavigation: false, waitForLoading: true }); await page.context().storageState({ path: `./storage-state/AdminUserState.json` });