Skip to content

Basic playwright electron support #4822

Basic playwright electron support

Basic playwright electron support #4822

Triggered via pull request September 28, 2023 15:12
Status Failure
Total duration 26m 12s
Artifacts

playwright.yml

on: pull_request
Playwright Tests (ubuntu-latest, Node.js 18.x)
26m 2s
Playwright Tests (ubuntu-latest, Node.js 18.x)
Fit to window
Zoom out
Zoom in

Annotations

10 errors, 8 warnings, and 2 notices
../../src/tests/theia-app.test.ts:28:9 › Theia Application › should load and should show main content panel: examples/playwright/src/theia-app-loader.ts#L87
1) ../../src/tests/theia-app.test.ts:28:9 › Theia Application › should load and should show main content panel TimeoutError: electronApplication.firstWindow: Timeout 30000ms exceeded while waiting for event "window" at ../../src/theia-app-loader.ts:87 85 | const playwrightOptions = this.toPlaywrightOptions(launchOptions, initialWorkspace); 86 | const electronApp = await electron.launch(playwrightOptions); > 87 | const page = await electronApp.firstWindow(); | ^ 88 | const appFactory = theiaAppFactory<T>(factory); 89 | const app = new appFactory(page, workspace); 90 | await app.waitForShellAndInitialized(); at Function.load (/home/runner/work/theia/theia/examples/playwright/src/theia-app-loader.ts:87:40) at /home/runner/work/theia/theia/examples/playwright/src/tests/theia-app.test.ts:45:15
../../src/tests/theia-app.test.ts:28:9 › Theia Application › should load and should show main content panel: examples/playwright/src/theia-app-loader.ts#L87
1) ../../src/tests/theia-app.test.ts:28:9 › Theia Application › should load and should show main content panel Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TimeoutError: electronApplication.firstWindow: Timeout 30000ms exceeded while waiting for event "window" at ../../src/theia-app-loader.ts:87 85 | const playwrightOptions = this.toPlaywrightOptions(launchOptions, initialWorkspace); 86 | const electronApp = await electron.launch(playwrightOptions); > 87 | const page = await electronApp.firstWindow(); | ^ 88 | const appFactory = theiaAppFactory<T>(factory); 89 | const app = new appFactory(page, workspace); 90 | await app.waitForShellAndInitialized(); at Function.load (/home/runner/work/theia/theia/examples/playwright/src/theia-app-loader.ts:87:40) at /home/runner/work/theia/theia/examples/playwright/src/tests/theia-app.test.ts:45:15
../../src/tests/theia-explorer-view.test.ts:68:9 › Theia Explorer View › should be visible and active after being opened: examples/playwright/src/theia-app-loader.ts#L87
2) ../../src/tests/theia-explorer-view.test.ts:68:9 › Theia Explorer View › should be visible and active after being opened TimeoutError: electronApplication.firstWindow: Timeout 30000ms exceeded while waiting for event "window" at ../../src/theia-app-loader.ts:87 85 | const playwrightOptions = this.toPlaywrightOptions(launchOptions, initialWorkspace); 86 | const electronApp = await electron.launch(playwrightOptions); > 87 | const page = await electronApp.firstWindow(); | ^ 88 | const appFactory = theiaAppFactory<T>(factory); 89 | const app = new appFactory(page, workspace); 90 | await app.waitForShellAndInitialized(); at Function.load (/home/runner/work/theia/theia/examples/playwright/src/theia-app-loader.ts:87:40) at /home/runner/work/theia/theia/examples/playwright/src/tests/theia-explorer-view.test.ts:51:15
../../src/tests/theia-explorer-view.test.ts:68:9 › Theia Explorer View › should be visible and active after being opened: examples/playwright/src/theia-app-loader.ts#L87
2) ../../src/tests/theia-explorer-view.test.ts:68:9 › Theia Explorer View › should be visible and active after being opened Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TimeoutError: electronApplication.firstWindow: Timeout 30000ms exceeded while waiting for event "window" at ../../src/theia-app-loader.ts:87 85 | const playwrightOptions = this.toPlaywrightOptions(launchOptions, initialWorkspace); 86 | const electronApp = await electron.launch(playwrightOptions); > 87 | const page = await electronApp.firstWindow(); | ^ 88 | const appFactory = theiaAppFactory<T>(factory); 89 | const app = new appFactory(page, workspace); 90 | await app.waitForShellAndInitialized(); at Function.load (/home/runner/work/theia/theia/examples/playwright/src/theia-app-loader.ts:87:40) at /home/runner/work/theia/theia/examples/playwright/src/tests/theia-explorer-view.test.ts:51:15
../../src/tests/theia-main-menu.test.ts:58:9 › Theia Main Menu › should show the main menu bar: examples/playwright/src/theia-app-loader.ts#L87
3) ../../src/tests/theia-main-menu.test.ts:58:9 › Theia Main Menu › should show the main menu bar TimeoutError: electronApplication.firstWindow: Timeout 30000ms exceeded while waiting for event "window" at ../../src/theia-app-loader.ts:87 85 | const playwrightOptions = this.toPlaywrightOptions(launchOptions, initialWorkspace); 86 | const electronApp = await electron.launch(playwrightOptions); > 87 | const page = await electronApp.firstWindow(); | ^ 88 | const appFactory = theiaAppFactory<T>(factory); 89 | const app = new appFactory(page, workspace); 90 | await app.waitForShellAndInitialized(); at Function.load (/home/runner/work/theia/theia/examples/playwright/src/theia-app-loader.ts:87:40) at /home/runner/work/theia/theia/examples/playwright/src/tests/theia-main-menu.test.ts:50:15
../../src/tests/theia-main-menu.test.ts:58:9 › Theia Main Menu › should show the main menu bar: examples/playwright/src/theia-app-loader.ts#L87
3) ../../src/tests/theia-main-menu.test.ts:58:9 › Theia Main Menu › should show the main menu bar Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TimeoutError: electronApplication.firstWindow: Timeout 30000ms exceeded while waiting for event "window" at ../../src/theia-app-loader.ts:87 85 | const playwrightOptions = this.toPlaywrightOptions(launchOptions, initialWorkspace); 86 | const electronApp = await electron.launch(playwrightOptions); > 87 | const page = await electronApp.firstWindow(); | ^ 88 | const appFactory = theiaAppFactory<T>(factory); 89 | const app = new appFactory(page, workspace); 90 | await app.waitForShellAndInitialized(); at Function.load (/home/runner/work/theia/theia/examples/playwright/src/theia-app-loader.ts:87:40) at /home/runner/work/theia/theia/examples/playwright/src/tests/theia-main-menu.test.ts:50:15
../../src/tests/theia-output-view.test.ts:51:9 › Theia Output View › should open the output view and check if is visible and active: examples/playwright/src/theia-app-loader.ts#L87
4) ../../src/tests/theia-output-view.test.ts:51:9 › Theia Output View › should open the output view and check if is visible and active TimeoutError: electronApplication.firstWindow: Timeout 30000ms exceeded while waiting for event "window" at ../../src/theia-app-loader.ts:87 85 | const playwrightOptions = this.toPlaywrightOptions(launchOptions, initialWorkspace); 86 | const electronApp = await electron.launch(playwrightOptions); > 87 | const page = await electronApp.firstWindow(); | ^ 88 | const appFactory = theiaAppFactory<T>(factory); 89 | const app = new appFactory(page, workspace); 90 | await app.waitForShellAndInitialized(); at Function.load (/home/runner/work/theia/theia/examples/playwright/src/theia-app-loader.ts:87:40) at /home/runner/work/theia/theia/examples/playwright/src/tests/theia-output-view.test.ts:44:15
../../src/tests/theia-output-view.test.ts:51:9 › Theia Output View › should open the output view and check if is visible and active: examples/playwright/src/theia-app-loader.ts#L87
4) ../../src/tests/theia-output-view.test.ts:51:9 › Theia Output View › should open the output view and check if is visible and active Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TimeoutError: electronApplication.firstWindow: Timeout 30000ms exceeded while waiting for event "window" at ../../src/theia-app-loader.ts:87 85 | const playwrightOptions = this.toPlaywrightOptions(launchOptions, initialWorkspace); 86 | const electronApp = await electron.launch(playwrightOptions); > 87 | const page = await electronApp.firstWindow(); | ^ 88 | const appFactory = theiaAppFactory<T>(factory); 89 | const app = new appFactory(page, workspace); 90 | await app.waitForShellAndInitialized(); at Function.load (/home/runner/work/theia/theia/examples/playwright/src/theia-app-loader.ts:87:40) at /home/runner/work/theia/theia/examples/playwright/src/tests/theia-output-view.test.ts:44:15
../../src/tests/theia-preference-view.test.ts:52:9 › Preference View › should be visible and active after being opened: examples/playwright/src/theia-app-loader.ts#L87
5) ../../src/tests/theia-preference-view.test.ts:52:9 › Preference View › should be visible and active after being opened TimeoutError: electronApplication.firstWindow: Timeout 30000ms exceeded while waiting for event "window" at ../../src/theia-app-loader.ts:87 85 | const playwrightOptions = this.toPlaywrightOptions(launchOptions, initialWorkspace); 86 | const electronApp = await electron.launch(playwrightOptions); > 87 | const page = await electronApp.firstWindow(); | ^ 88 | const appFactory = theiaAppFactory<T>(factory); 89 | const app = new appFactory(page, workspace); 90 | await app.waitForShellAndInitialized(); at Function.load (/home/runner/work/theia/theia/examples/playwright/src/theia-app-loader.ts:87:40) at /home/runner/work/theia/theia/examples/playwright/src/tests/theia-preference-view.test.ts:45:15
../../src/tests/theia-preference-view.test.ts:52:9 › Preference View › should be visible and active after being opened: examples/playwright/src/theia-app-loader.ts#L87
5) ../../src/tests/theia-preference-view.test.ts:52:9 › Preference View › should be visible and active after being opened Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TimeoutError: electronApplication.firstWindow: Timeout 30000ms exceeded while waiting for event "window" at ../../src/theia-app-loader.ts:87 85 | const playwrightOptions = this.toPlaywrightOptions(launchOptions, initialWorkspace); 86 | const electronApp = await electron.launch(playwrightOptions); > 87 | const page = await electronApp.firstWindow(); | ^ 88 | const appFactory = theiaAppFactory<T>(factory); 89 | const app = new appFactory(page, workspace); 90 | await app.waitForShellAndInitialized(); at Function.load (/home/runner/work/theia/theia/examples/playwright/src/theia-app-loader.ts:87:40) at /home/runner/work/theia/theia/examples/playwright/src/tests/theia-preference-view.test.ts:45:15
Playwright Tests (ubuntu-latest, Node.js 18.x)
The following actions uses node12 which is deprecated and will be forced to run on node16: GabrielBB/xvfb-action@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Slow Test: src/tests/theia-quick-command.test.ts#L1
src/tests/theia-quick-command.test.ts took 35.6s
Slow Test: src/tests/theia-text-editor.test.ts#L1
src/tests/theia-text-editor.test.ts took 23.0s
Slow Test: src/tests/theia-workspace.test.ts#L1
src/tests/theia-workspace.test.ts took 22.1s
Slow Test: src/tests/theia-explorer-view.test.ts#L1
src/tests/theia-explorer-view.test.ts took 20.6s
Slow Test: src/tests/theia-preference-view.test.ts#L1
src/tests/theia-preference-view.test.ts took 17.9s
Slow Test: src/tests/theia-workspace.test.ts#L1
src/tests/theia-workspace.test.ts took 3.1m
Slow Test: src/tests/theia-app.test.ts#L1
src/tests/theia-app.test.ts took 1.0m
🎭 Playwright Run Summary
74 passed (4.0m)
🎭 Playwright Run Summary
15 failed ../../src/tests/theia-app.test.ts:28:9 › Theia Application › should load and should show main content panel ../../src/tests/theia-explorer-view.test.ts:68:9 › Theia Explorer View › should be visible and active after being opened ../../src/tests/theia-main-menu.test.ts:58:9 › Theia Main Menu › should show the main menu bar ─ ../../src/tests/theia-output-view.test.ts:51:9 › Theia Output View › should open the output view and check if is visible and active ../../src/tests/theia-preference-view.test.ts:52:9 › Preference View › should be visible and active after being opened ../../src/tests/theia-problems-view.test.ts:52:9 › Theia Problems View › should be visible and active after being opened ../../src/tests/theia-quick-command.test.ts:58:9 › Theia Quick Command › should show quick command palette ../../src/tests/theia-sample-app.test.ts:69:9 › Theia Sample Application › should start with visible toolbar ../../src/tests/theia-status-bar.test.ts:57:9 › Theia Status Bar › should show status bar ────── ../../src/tests/theia-terminal-view.test.ts:52:9 › Theia Terminal View › should be possible to open a new terminal ../../src/tests/theia-text-editor.test.ts:60:9 › Theia Text Editor › should be visible and active after opening "sample.txt" ../../src/tests/theia-toolbar.test.ts:52:9 › Theia Toolbar › should toggle the toolbar and check visibility ../../src/tests/theia-workspace.test.ts:54:9 › Theia Workspace › should be initialized with the contents of a file location ../../src/tests/theia-workspace.test.ts:65:9 › Theia Workspace › should be initialized with the contents of multiple file locations ../../src/tests/theia-workspace.test.ts:78:9 › Theia Workspace › open sample.txt via file menu ─ 58 skipped 1 passed (16.0m)