Skip to content

Commit e7c7b19

Browse files
committed
chore(revert): test
1 parent 3019f88 commit e7c7b19

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

test/integration/tests/button/paypalAppSwitchOverlay.js

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,18 +70,15 @@ describe(`PayPal app switch overlay`, () => {
7070
},
7171
});
7272

73-
// Wait for overlay to render before clicking
74-
setTimeout(() => {
75-
getElementRecursive(".paypal-checkout-continue").click();
73+
getElementRecursive(".paypal-checkout-continue").click();
7674

77-
if (!focusCalled) {
78-
done(new Error("Expected focus function to be called"));
79-
}
75+
if (!focusCalled) {
76+
done(new Error("Expected focus function to be called"));
77+
}
8078

81-
xprops.hidePayPalAppSwitchOverlay({ close: noop });
79+
xprops.hidePayPalAppSwitchOverlay({ close: noop });
8280

83-
done();
84-
}, 100);
81+
done();
8582
},
8683
},
8784
onApprove(): void {

0 commit comments

Comments
 (0)