Skip to content

Commit

Permalink
fix: add browser logs to debug issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilb committed Nov 8, 2024
1 parent 52a8296 commit 27e09f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/desktop-regression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ jobs:
options: --cpus 8

env:
SESSION_DESKTOP_ROOT: '$GITHUB_WORKSPACE/desktop'
# PLAYWRIGHT_CUSTOM_REPORTER: 1
PLAYWRIGHT_REPEAT_COUNT: ${{ github.event.inputs.PLAYWRIGHT_REPEAT_COUNT }}
PLAYWRIGHT_RETRIES_COUNT: ${{ github.event.inputs.PLAYWRIGHT_RETRIES_COUNT }}
Expand All @@ -75,7 +74,6 @@ jobs:
- uses: actions/checkout@v4
- name: Runner Details
run: |
echo "SESSION_DESKTOP_ROOT ${{ env.SESSION_DESKTOP_ROOT }}"
echo "PLAYWRIGHT_REPO ${{ github.event.inputs.PLAYWRIGHT_REPO }}"
echo "BRANCH_TO_CHECKOUT_PW ${{ github.event.inputs.BRANCH_TO_CHECKOUT_PW }}"
echo "SESSION_DESKTOP_REPO ${{ github.event.inputs.SESSION_DESKTOP_REPO }}"
Expand Down Expand Up @@ -158,7 +156,7 @@ jobs:
- name: Run the Desktop tests
run: |
cd $GITHUB_WORKSPACE/playwright
yarn test -g "Create User"
SESSION_DESKTOP_ROOT=$GITHUB_WORKSPACE/desktop DEBUG=pw:browser xvfb-run --auto-servernum --server-num=1 --server-args='-screen 0, 1920x1080x24' yarn test -g "Create User"
- name: Kill all running electron app
if: always()
Expand Down
2 changes: 1 addition & 1 deletion tests/automation/setup/open.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const openElectronAppOnly = async (multi: string) => {
}
};

const logBrowserConsole = false;
const logBrowserConsole = true;

const openAppAndWait = async (multi: string) => {
const electronApp = await openElectronAppOnly(multi);
Expand Down

0 comments on commit 27e09f1

Please sign in to comment.