@@ -8,16 +8,18 @@ const phone = '+12016660127';
8
8
test . beforeEach ( async ( ) => {
9
9
const prisma = new PrismaClient ( ) ;
10
10
const utils = new SeedUtils ( new Date ( ) , prisma ) ;
11
- await utils . deleteUsers ( { phone } )
11
+ await utils . deleteUsers ( { phone } ) ;
12
12
await prisma . $disconnect ( ) ;
13
13
} ) ;
14
14
15
15
test . only ( 'User can create new profile with valid phone number' , async ( { page } ) => {
16
16
await page . goto ( host ) ;
17
17
18
+ console . log ( 'CHECKPOINT 1' ) ;
18
19
await page . waitForTimeout ( 3000 ) ;
19
20
await page . getByRole ( 'textbox' ) . fill ( phone ) ;
20
21
await page . getByRole ( 'button' ) . click ( ) ;
22
+ console . log ( 'CHECKPOINT 2' ) ;
21
23
22
24
let token : string ;
23
25
const retrieveTokenFromServerLog = async ( msg : ConsoleMessage ) => {
@@ -37,19 +39,22 @@ test.only('User can create new profile with valid phone number', async ({ page }
37
39
}
38
40
} , 100 ) ;
39
41
} ) ;
42
+ console . log ( 'CHECKPOINT 3' ) ;
40
43
await page . goto ( `${ host } /login/${ token ! } ` ) ;
41
44
await page . waitForURL ( `${ host } /profile` ) ;
42
-
45
+ console . log ( 'CHECKPOINT 4' ) ;
43
46
// if this shows up, then that means the modal is open, which means this is a brand new user, as expected
44
47
const acceptBtn = page . locator ( 'dialog button' ) ;
45
48
await acceptBtn . waitFor ( ) ;
46
- await acceptBtn . click ( )
47
- await acceptBtn . waitFor ( { state : 'hidden' } ) ;
48
-
49
+ await acceptBtn . click ( ) ;
50
+ await acceptBtn . waitFor ( { state : 'hidden' } ) ;
51
+ console . log ( 'CHECKPOINT 5' ) ;
49
52
await page . getByLabel ( 'First Name' ) . fill ( 'FIRST_NAME' ) ;
50
53
await page . getByLabel ( 'Last Name' ) . fill ( 'LAST_NAME' ) ;
51
54
await page . getByLabel ( 'Pronouns' ) . selectOption ( 'SHE_HER_HERS' ) ;
52
55
56
+ console . log ( 'CHECKPOINT 6' ) ;
53
57
await page . getByText ( 'Save' ) . click ( ) ;
58
+ console . log ( 'CHECKPOINT 7' ) ;
54
59
await page . waitForURL ( `${ host } /household` ) ;
55
60
} ) ;
0 commit comments