Skip to content

Commit 8da98ba

Browse files
committed
E2E auth apple: fix wpcom and woo auth flows
1 parent 4797f86 commit 8da98ba

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

test/e2e/specs/authentication/authentication__apple.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ describe( DataHelper.createSuiteTitle( 'Authentication: Apple' ), function () {
5959
inboxId: SecretsManager.secrets.mailosaur.totpUserInboxId,
6060
receivedAfter: timestamp,
6161
subject: 'SMS',
62-
body: 'Your Apple ID Code is',
62+
body: 'Your Apple Account code is',
6363
} );
6464

6565
const code = emailClient.get2FACodeFromMessage( message );
@@ -124,7 +124,7 @@ describe( DataHelper.createSuiteTitle( 'Authentication: Apple' ), function () {
124124
inboxId: SecretsManager.secrets.mailosaur.totpUserInboxId,
125125
receivedAfter: timestamp,
126126
subject: 'SMS',
127-
body: 'Your Apple ID Code is',
127+
body: 'Your Apple Account code is',
128128
} );
129129

130130
const code = emailClient.get2FACodeFromMessage( message );
@@ -138,8 +138,15 @@ describe( DataHelper.createSuiteTitle( 'Authentication: Apple' ), function () {
138138
await appleLoginPage.clickButtonContainingText( 'Continue' );
139139
} );
140140

141+
it( 'Authorize your WPCOM to sign into WooCommerce', async function () {
142+
const approveButton = page.locator( 'button:text("Approve")' );
143+
if ( ( await approveButton.count() ) > 0 ) {
144+
await approveButton.click();
145+
}
146+
} );
147+
141148
it( 'Redirected to woo.com upon successful login', async function () {
142-
await page.waitForURL( /.*woo\.com*/ );
149+
await page.waitForURL( /.*woocommerce\.com*/ );
143150
} );
144151
} );
145152
} );

0 commit comments

Comments
 (0)