File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
injected/integration-test/page-objects Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -309,11 +309,7 @@ export class DuckplayerOverlays {
309
309
await this . build . switch ( {
310
310
android : async ( ) => {
311
311
await this . collector . updateMockResponse ( {
312
- initialSetup : {
313
- locale : 'en' ,
314
- env : 'development' ,
315
- platform : { name : 'android ' } ,
316
- } ,
312
+ initialSetup : { } ,
317
313
} ) ;
318
314
} ,
319
315
apple : async ( ) => {
@@ -530,7 +526,7 @@ export class DuckplayerOverlays {
530
526
await this . build . switch ( {
531
527
android : async ( ) => {
532
528
// Android produces a TypeError due to how its messaging lib is wired up
533
- await this . didSendException ( 'TypeError' , "undefined is not an object (evaluating 'init2.settings.pip ')" ) ;
529
+ await this . didSendException ( 'TypeError' , "Cannot read properties of undefined (reading 'privatePlayerMode ')" ) ;
534
530
} ,
535
531
apple : async ( ) => {
536
532
await this . didSendException ( 'InitialSetupError' , 'Error: an unknown error occurred' ) ;
Original file line number Diff line number Diff line change @@ -305,6 +305,9 @@ export function mockAndroidMessaging(params) {
305
305
) ,
306
306
) ;
307
307
308
+ // force a 'tick' to allow tests to reset mocks before reading responses
309
+ await new Promise ( ( resolve ) => setTimeout ( resolve , 0 ) ) ;
310
+
308
311
// if it's a notification, simulate the empty response and don't check for a response
309
312
if ( ! ( 'id' in msg ) ) {
310
313
return ;
You can’t perform that action at this time.
0 commit comments