File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ const USER_AGENTS = {
24
24
25
25
jest . setTimeout ( 120000 ) ;
26
26
27
- const setupBrowserPage = async ( ) => {
27
+ const setupBrowserPage = ( async ( ) => {
28
28
console . log ( '>>> setupBrowserPage has been invoked' ) ;
29
29
const { browser, page } = await openPage ( await webpackCompile ( BASE_SCREENSHOT_TEST ) ) ;
30
30
@@ -39,12 +39,12 @@ const setupBrowserPage = async () => {
39
39
} ) ;
40
40
41
41
return { browser, page } ;
42
- } ;
42
+ } ) ( ) ;
43
43
44
- beforeAll ( async ( ) => await setupBrowserPage ( ) ) ;
44
+ beforeAll ( async ( ) => await setupBrowserPage ) ;
45
45
46
46
afterAll ( async ( ) => {
47
- const { browser } = await setupBrowserPage ( ) ;
47
+ const { browser } = await setupBrowserPage ;
48
48
await browser . close ( ) ;
49
49
} ) ;
50
50
@@ -56,7 +56,7 @@ const config = buttonConfigs[0];
56
56
const filename = config . filename || dotifyToString ( config ) || 'base' ;
57
57
58
58
test ( `Render button with ${ filename } ` , async ( ) => {
59
- const { page } = await setupBrowserPage ( ) ;
59
+ const { page } = await setupBrowserPage ;
60
60
61
61
// fasten up the animation
62
62
await page . _client . send ( 'Animation.setPlaybackRate' , { playbackRate : 12 } ) ;
You can’t perform that action at this time.
0 commit comments