[ACS-4922] Try using node modules http server lib

This commit is contained in:
KikoUK
2023-03-23 14:27:02 +00:00
parent def0c2e275
commit 07a5f8fd20
2 changed files with 2 additions and 1 deletions

View File

@@ -19,7 +19,7 @@ runs:
shell: bash shell: bash
run: | run: |
./node_modules/.bin/tsc -p "./e2e/$E2E_TSCONFIG" || exit 1; ./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 if [ ${{ inputs.test-runner }} == "playwright" ]; then
echo "Running playwright tests with options ${{ inputs.options }}" echo "Running playwright tests with options ${{ inputs.options }}"

View File

@@ -37,6 +37,7 @@ async function globalSetup(config: FullConfig) {
const loginPage = new LoginPage(page); const loginPage = new LoginPage(page);
fs.mkdirSync(`./storage-state`, { recursive: true }); fs.mkdirSync(`./storage-state`, { recursive: true });
await page.setDefaultNavigationTimeout(300000);
await page.goto(baseUrl); await page.goto(baseUrl);
await loginPage.loginUser({ username: acsAdminUser, password: acsAdminUserPassword }, { withNavigation: false, waitForLoading: true }); await loginPage.loginUser({ username: acsAdminUser, password: acsAdminUserPassword }, { withNavigation: false, waitForLoading: true });
await page.context().storageState({ path: `./storage-state/AdminUserState.json` }); await page.context().storageState({ path: `./storage-state/AdminUserState.json` });