File tree Expand file tree Collapse file tree 2 files changed +4
-11
lines changed Expand file tree Collapse file tree 2 files changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -23,12 +23,7 @@ import { SceneFixture } from '@e2e/playwright/fixtures/sceneFixture'
23
23
import { ToolbarFixture } from '@e2e/playwright/fixtures/toolbarFixture'
24
24
25
25
import { TEST_SETTINGS } from '@e2e/playwright/storageStates'
26
- import {
27
- assertElectron ,
28
- getUtils ,
29
- settingsToToml ,
30
- setup ,
31
- } from '@e2e/playwright/test-utils'
26
+ import { getUtils , settingsToToml , setup } from '@e2e/playwright/test-utils'
32
27
33
28
export class AuthenticatedApp {
34
29
public readonly page : Page
@@ -233,7 +228,9 @@ export class ElectronZoo {
233
228
} , dims )
234
229
235
230
return this . evaluate ( async ( dims : { width : number ; height : number } ) => {
236
- assertElectron ( )
231
+ if ( ! window . electron ) {
232
+ throw new Error ( 'Electron not defined' )
233
+ }
237
234
await window . electron ?. resizeWindow ( dims . width , dims . height )
238
235
window . document . body . style . width = dims . width + 'px'
239
236
window . document . body . style . height = dims . height + 'px'
Original file line number Diff line number Diff line change @@ -68,10 +68,6 @@ export const commonPoints = {
68
68
export const editorSelector = '[role="textbox"][data-language="kcl"]'
69
69
type PaneId = 'variables' | 'code' | 'files' | 'logs'
70
70
71
- export function assertElectron ( ) {
72
- expect ( window . electron ) . toBeDefined ( )
73
- }
74
-
75
71
export function runningOnLinux ( ) {
76
72
return process . platform === 'linux'
77
73
}
You can’t perform that action at this time.
0 commit comments