Increase timeout of macOS E2E tests (#11837)

This commit is contained in:
Adam Obuchowicz 2024-12-11 18:34:10 +01:00 committed by GitHub
parent 9cf7833de0
commit f1a283be03
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 6 deletions

View File

@ -436,7 +436,7 @@ jobs:
ENSO_IDE_AG_GRID_LICENSE_KEY: ${{ vars.ENSO_AG_GRID_LICENSE_KEY }}
ENSO_IDE_MAPBOX_API_TOKEN: ${{ vars.ENSO_MAPBOX_API_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: corepack pnpm -r --filter enso exec playwright test
- run: corepack pnpm -r --filter enso exec playwright test --timeout 300000
env:
DEBUG: "pw:browser log:"
ENSO_TEST_USER: ${{ secrets.ENSO_CLOUD_TEST_ACCOUNT_USERNAME }}

View File

@ -581,12 +581,15 @@ impl JobArchetype for PackageIde {
.customize(move |step| {
let mut steps = prepare_packaging_steps(target.0, step);
const TEST_COMMAND: &str = "corepack pnpm -r --filter enso exec playwright test";
let test_step = if target.0 == OS::Linux {
shell(format!("xvfb-run {TEST_COMMAND}"))
let test_step = match target.0 {
OS::Linux => shell(format!("xvfb-run {TEST_COMMAND}"))
// See https://askubuntu.com/questions/1512287/obsidian-appimage-the-suid-sandbox-helper-binary-was-found-but-is-not-configu
.with_env("ENSO_TEST_APP_ARGS", "--no-sandbox")
} else {
shell(TEST_COMMAND)
.with_env("ENSO_TEST_APP_ARGS", "--no-sandbox"),
OS::MacOS =>
// MacOS CI runners are very slow
shell(format!("{TEST_COMMAND} --timeout 300000")),
_ => shell(TEST_COMMAND),
};
let test_step = test_step
.with_env("DEBUG", "pw:browser log:")