Skip to content

Commit b9be628

Browse files
committed
add checkpoints to test
1 parent b0fcae8 commit b9be628

File tree

2 files changed

+10
-18
lines changed

2 files changed

+10
-18
lines changed

tests/profile.spec.ts

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,18 @@ const phone = '+12016660127';
88
test.beforeEach(async () => {
99
const prisma = new PrismaClient();
1010
const utils = new SeedUtils(new Date(), prisma);
11-
await utils.deleteUsers({ phone })
11+
await utils.deleteUsers({ phone });
1212
await prisma.$disconnect();
1313
});
1414

1515
test.only('User can create new profile with valid phone number', async ({ page }) => {
1616
await page.goto(host);
1717

18+
console.log('CHECKPOINT 1');
1819
await page.waitForTimeout(3000);
1920
await page.getByRole('textbox').fill(phone);
2021
await page.getByRole('button').click();
22+
console.log('CHECKPOINT 2');
2123

2224
let token: string;
2325
const retrieveTokenFromServerLog = async (msg: ConsoleMessage) => {
@@ -37,19 +39,22 @@ test.only('User can create new profile with valid phone number', async ({ page }
3739
}
3840
}, 100);
3941
});
42+
console.log('CHECKPOINT 3');
4043
await page.goto(`${host}/login/${token!}`);
4144
await page.waitForURL(`${host}/profile`);
42-
45+
console.log('CHECKPOINT 4');
4346
// if this shows up, then that means the modal is open, which means this is a brand new user, as expected
4447
const acceptBtn = page.locator('dialog button');
4548
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');
4952
await page.getByLabel('First Name').fill('FIRST_NAME');
5053
await page.getByLabel('Last Name').fill('LAST_NAME');
5154
await page.getByLabel('Pronouns').selectOption('SHE_HER_HERS');
5255

56+
console.log('CHECKPOINT 6');
5357
await page.getByText('Save').click();
58+
console.log('CHECKPOINT 7');
5459
await page.waitForURL(`${host}/household`);
5560
});

tsconfig.json

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
11
{
22
"extends": "./.svelte-kit/tsconfig.json",
3-
"include": [
4-
5-
// "ambient.d.ts",
6-
// "./types/**/$types.d.ts",
7-
// "../vite.config.js",
8-
// "../vite.config.ts",
9-
// "../src/**/*.js",
10-
// "../src/**/*.ts",
11-
// "../src/**/*.svelte",
12-
// "../tests/**/*.js",
13-
// "../tests/**/*.ts",
14-
// "../tests/**/*.svelte"
15-
],
163
"compilerOptions": {
174
"allowJs": true,
185
"checkJs": true,

0 commit comments

Comments
 (0)