Skip to content

Commit f330e3f

Browse files
oaratovskyioaratovskyi
andauthored
Fix progressive onboarding broken e2e test (#9466)
Co-authored-by: oaratovskyi <[email protected]>
1 parent c2c8fce commit f330e3f

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

changelog/dev-fix-po-test

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: patch
2+
Type: dev
3+
4+
Fix progressive onboarding e2e test

tests/e2e/specs/wcpay/merchant/merchant-progressive-onboarding.spec.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,9 @@ describe( 'Admin merchant progressive onboarding', () => {
8888
}
8989
);
9090

91-
// Loading screen before redirect to Stripe.
92-
await expect( page ).toMatchElement( 'h1.stepper__heading', {
93-
text: 'One last step! Verify your identity with our partner',
94-
} );
95-
96-
// Merchant is redirected away to payments/connect again (because of force fisconnected option)
97-
// todo at some point test real Stripe KYC
98-
await page.waitForNavigation( { waitUntil: 'networkidle0' } );
91+
// Check that Stripe Embedded KYC iframe is loaded.
92+
await page.waitForSelector(
93+
'iframe[data-testid="stripe-connect-ui-layer-stripe-connect-account-onboarding"]'
94+
);
9995
} );
10096
} );

0 commit comments

Comments
 (0)