File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -20,12 +20,15 @@ describe('spellchecker', () => {
20
20
await closeWindow ( w )
21
21
} )
22
22
23
+ // Spellchecker loads slow on ARM CI machines.
24
+ const waitTime = ( process . arch === 'arm' || process . arch === 'arm64' ) ? 2000 : 500
25
+
23
26
ifit ( process . platform !== 'win32' ) ( 'should detect correctly spelled words as correct' , async ( ) => {
24
27
await w . webContents . executeJavaScript ( 'document.body.querySelector("textarea").value = "Beautiful and lovely"' )
25
28
await w . webContents . executeJavaScript ( 'document.body.querySelector("textarea").focus()' )
26
29
const contextMenuPromise = emittedOnce ( w . webContents , 'context-menu' )
27
30
// Wait for spellchecker to load
28
- await new Promise ( resolve => setTimeout ( resolve , 500 ) )
31
+ await new Promise ( resolve => setTimeout ( resolve , waitTime ) )
29
32
w . webContents . sendInputEvent ( {
30
33
type : 'mouseDown' ,
31
34
button : 'right' ,
@@ -42,7 +45,7 @@ describe('spellchecker', () => {
42
45
await w . webContents . executeJavaScript ( 'document.body.querySelector("textarea").focus()' )
43
46
const contextMenuPromise = emittedOnce ( w . webContents , 'context-menu' )
44
47
// Wait for spellchecker to load
45
- await new Promise ( resolve => setTimeout ( resolve , 500 ) )
48
+ await new Promise ( resolve => setTimeout ( resolve , waitTime ) )
46
49
w . webContents . sendInputEvent ( {
47
50
type : 'mouseDown' ,
48
51
button : 'right' ,
You can’t perform that action at this time.
0 commit comments