mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-09-17 14:21:14 +00:00
[ACS-4922] Try using node modules http server lib
This commit is contained in:
2
.github/actions/run-e2e/action.yml
vendored
2
.github/actions/run-e2e/action.yml
vendored
@@ -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 }}"
|
||||
|
@@ -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` });
|
||||
|
Reference in New Issue
Block a user