@@ -7,7 +7,8 @@ import { expect, test } from '../../lib/fixtures/standard';
77test . describe ( 'severity-1 #smoke' , ( ) => {
88 test . describe ( 'oauth permissions for trusted reliers - sign up' , ( ) => {
99 test ( 'signup without `prompt=consent`' , async ( {
10- pages : { page, signup, relier } ,
10+ target,
11+ pages : { page, signup, relier, confirmSignupCode } ,
1112 testAccountTracker,
1213 } ) => {
1314 const { email, password } = testAccountTracker . generateAccountDetails ( ) ;
@@ -19,12 +20,16 @@ test.describe('severity-1 #smoke', () => {
1920
2021 //no permissions asked for, straight to confirm
2122 await expect ( page ) . toHaveURL ( / c o n f i r m _ s i g n u p _ c o d e / ) ;
23+
24+ // Provide the code so the account can be cleaned up.
25+ const code = await target . emailClient . getVerifyShortCode ( email ) ;
26+ await confirmSignupCode . fillOutCodeForm ( code ) ;
2227 } ) ;
2328
2429 test ( 'signup with `prompt=consent`' , async ( {
2530 target,
2631 page,
27- pages : { configPage, signup, relier } ,
32+ pages : { configPage, signup, relier, confirmSignupCode } ,
2833 testAccountTracker,
2934 } ) => {
3035 const config = await configPage . getConfig ( ) ;
@@ -48,6 +53,10 @@ test.describe('severity-1 #smoke', () => {
4853
4954 //Verify sign up code header
5055 await expect ( page ) . toHaveURL ( / c o n f i r m _ s i g n u p _ c o d e / ) ;
56+
57+ // Provide the code so the account can be cleaned up.
58+ const code = await target . emailClient . getVerifyShortCode ( email ) ;
59+ await confirmSignupCode . fillOutCodeForm ( code ) ;
5160 } ) ;
5261 } ) ;
5362} ) ;
0 commit comments