@@ -59,7 +59,7 @@ describe( DataHelper.createSuiteTitle( 'Authentication: Apple' ), function () {
59
59
inboxId : SecretsManager . secrets . mailosaur . totpUserInboxId ,
60
60
receivedAfter : timestamp ,
61
61
subject : 'SMS' ,
62
- body : 'Your Apple ID Code is' ,
62
+ body : 'Your Apple Account code is' ,
63
63
} ) ;
64
64
65
65
const code = emailClient . get2FACodeFromMessage ( message ) ;
@@ -124,7 +124,7 @@ describe( DataHelper.createSuiteTitle( 'Authentication: Apple' ), function () {
124
124
inboxId : SecretsManager . secrets . mailosaur . totpUserInboxId ,
125
125
receivedAfter : timestamp ,
126
126
subject : 'SMS' ,
127
- body : 'Your Apple ID Code is' ,
127
+ body : 'Your Apple Account code is' ,
128
128
} ) ;
129
129
130
130
const code = emailClient . get2FACodeFromMessage ( message ) ;
@@ -138,8 +138,15 @@ describe( DataHelper.createSuiteTitle( 'Authentication: Apple' ), function () {
138
138
await appleLoginPage . clickButtonContainingText ( 'Continue' ) ;
139
139
} ) ;
140
140
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
+
141
148
it ( 'Redirected to woo.com upon successful login' , async function ( ) {
142
- await page . waitForURL ( / .* w o o \. c o m * / ) ;
149
+ await page . waitForURL ( / .* w o o c o m m e r c e \. c o m * / ) ;
143
150
} ) ;
144
151
} ) ;
145
152
} ) ;
0 commit comments