File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ describe('getPlaywrightInstance', () => {
235
235
const selectors = [ { name : 'test' , script : 'test' } ]
236
236
237
237
const instance = await getPlaywrightInstance ( 'firefox' , selectors )
238
- expect ( register ) . toHaveBeenLastCalledWith ( 'test' , { name : 'test' } )
238
+ expect ( register ) . toHaveBeenLastCalledWith ( 'test' , 'test' )
239
239
expect ( instance ) . toEqual ( 'firefox' )
240
240
} )
241
241
Original file line number Diff line number Diff line change @@ -89,8 +89,8 @@ export const getPlaywrightInstance = async (
89
89
const playwright = require ( 'playwright' )
90
90
if ( selectors ) {
91
91
await Promise . all (
92
- selectors . map ( ( { script , name } ) =>
93
- playwright . selectors . register ( script , { name } ) ,
92
+ selectors . map ( ( { name , script } ) =>
93
+ playwright . selectors . register ( name , script ) ,
94
94
) ,
95
95
)
96
96
}
You can’t perform that action at this time.
0 commit comments