diff --git a/tests/profile.spec.ts b/tests/profile.spec.ts index 3d9d4b6..6cf6b01 100644 --- a/tests/profile.spec.ts +++ b/tests/profile.spec.ts @@ -8,16 +8,18 @@ const phone = '+12016660127'; test.beforeEach(async () => { const prisma = new PrismaClient(); const utils = new SeedUtils(new Date(), prisma); - await utils.deleteUsers({ phone }) + await utils.deleteUsers({ phone }); await prisma.$disconnect(); }); test.only('User can create new profile with valid phone number', async ({ page }) => { await page.goto(host); + console.log('CHECKPOINT 1'); await page.waitForTimeout(3000); await page.getByRole('textbox').fill(phone); await page.getByRole('button').click(); + console.log('CHECKPOINT 2'); let token: string; const retrieveTokenFromServerLog = async (msg: ConsoleMessage) => { @@ -37,19 +39,22 @@ test.only('User can create new profile with valid phone number', async ({ page } } }, 100); }); + console.log('CHECKPOINT 3'); await page.goto(`${host}/login/${token!}`); await page.waitForURL(`${host}/profile`); - + console.log('CHECKPOINT 4'); // if this shows up, then that means the modal is open, which means this is a brand new user, as expected const acceptBtn = page.locator('dialog button'); await acceptBtn.waitFor(); - await acceptBtn.click() - await acceptBtn.waitFor({ state: 'hidden'}); - + await acceptBtn.click(); + await acceptBtn.waitFor({ state: 'hidden' }); + console.log('CHECKPOINT 5'); await page.getByLabel('First Name').fill('FIRST_NAME'); await page.getByLabel('Last Name').fill('LAST_NAME'); await page.getByLabel('Pronouns').selectOption('SHE_HER_HERS'); + console.log('CHECKPOINT 6'); await page.getByText('Save').click(); + console.log('CHECKPOINT 7'); await page.waitForURL(`${host}/household`); }); diff --git a/tsconfig.json b/tsconfig.json index f6b18b0..6ae0c8c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,18 +1,5 @@ { "extends": "./.svelte-kit/tsconfig.json", - "include": [ - - // "ambient.d.ts", - // "./types/**/$types.d.ts", - // "../vite.config.js", - // "../vite.config.ts", - // "../src/**/*.js", - // "../src/**/*.ts", - // "../src/**/*.svelte", - // "../tests/**/*.js", - // "../tests/**/*.ts", - // "../tests/**/*.svelte" - ], "compilerOptions": { "allowJs": true, "checkJs": true,