Skip to content

Commit

Permalink
Merge pull request #2156 from bugsnag/tms/electron-playing
Browse files Browse the repository at this point in the history
Reinstate and refresh Electon tests on macOS
  • Loading branch information
twometresteve authored Jun 13, 2024
2 parents 604234b + b893f34 commit 6e75c92
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
11 changes: 6 additions & 5 deletions .buildkite/basic/electron-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ steps:
- label: "Electron {{matrix.electron_version}} tests - macOS - Node {{matrix.node_version}}"
timeout_in_minutes: 40
agents:
queue: macos-11
queue: macos-14
env:
DEVELOPER_DIR: "/Applications/Xcode12.app"
NODE_VERSION: "{{matrix.node_version}}"
ELECTRON_VERSION: "{{matrix.electron_version}}"
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "1"
Expand All @@ -17,11 +16,13 @@ steps:
matrix:
setup:
electron_version:
- "^12.0.0"
- "^20.0.0"
- "^24.0.0"
- "^26.0.0"
- "^28.0.0"
- "^30.0.0"
node_version:
- "12"
- "14"
- "18"
commands:
- echo "Running on Node `node -v`"
- npm install electron@${ELECTRON_VERSION} --no-audit --progress=false --no-save
Expand Down
1 change: 0 additions & 1 deletion .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ steps:
- buildkite-agent pipeline upload .buildkite/basic/browser-pipeline.yml

- label: ":large_blue_circle: :large_blue_circle: :large_blue_circle: ELECTRON STEPS :large_blue_circle: :large_blue_circle: :large_blue_circle:"
skip: Skipped pending PLAT-10345
commands:
- buildkite-agent pipeline upload .buildkite/basic/electron-pipeline.yml

Expand Down
4 changes: 4 additions & 0 deletions test/electron/features/last-run-info.feature
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
Feature: lastRunInfo

# Skipped on macOS pending PLAT-12276
@not_macos
Scenario: Last run info consecutive crashes on-launch
# Crash the app during launch - twice
Given I launch an app with configuration:
Expand All @@ -22,6 +24,8 @@ Feature: lastRunInfo
| Content-Type | application/json |
Then the contents of an event request matches "launch-info/consecutive-launch-crashes.json"

# Skipped on macOS pending PLAT-12276
@not_macos
Scenario: Last run info after crash
Given I launch an app with configuration:
| bugsnag | zero-launch-duration |
Expand Down
4 changes: 4 additions & 0 deletions test/electron/features/support/world.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ Before('@not_windows', () => {
if (process.platform === 'win32') return 'skipped'
})

Before('@not_macos', () => {
if (process.platform === 'darwin') return 'skipped'
})

Before(async () => {
await global.server.start()
})
Expand Down

0 comments on commit 6e75c92

Please sign in to comment.