Skip to content

Commit

Permalink
test DISPLAY envvar
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinepouille committed Dec 5, 2024
1 parent 5d9a371 commit b5b54c6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,12 @@ jobs:
export DISPLAY=:99
sleep 3
- name: Run Playwright tests
run: DEBUG=pw:browser* npx playwright test --retries=2 --trace retain-on-first-failure --project electron
run: |
echo "start"
echo $DISPLAY
echo "end"
export DISPLAY=:99
DEBUG=pw:browser* npx playwright test --retries=2 --trace retain-on-first-failure --project electron
# run: DEBUG=pw:browser* xvfb-run -e /dev/stdout npx playwright test --retries=2 --trace retain-on-first-failure --project electron
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
Expand Down
1 change: 1 addition & 0 deletions gui/entry_point/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ function createWindow() {
})

mainWindow.once('ready-to-show', () => {
// TODO: put this back conditionnally
// mainWindow.show()
})
}
Expand Down
6 changes: 4 additions & 2 deletions tests/playwright/project_electron_param.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ export const test = test_base.extend<TestOptions>({
console.info("Setting up electron app");
const electronApp = await electron.launch({
args: [
"--ignore-gpu-blacklist", "--enable-logging",
"--ignore-gpu-blacklist",
"--enable-logging",
electron_app_entry_point_path
], executablePath: electron_exe_path
],
executablePath: electron_exe_path
});

// TODO: remove?
Expand Down

0 comments on commit b5b54c6

Please sign in to comment.