From c68afc8dc666515f57081de8098733049359b7a6 Mon Sep 17 00:00:00 2001 From: Jessica Ho Date: Wed, 28 Feb 2024 07:02:50 +0000 Subject: [PATCH] only run old tests --- tests/db.spec.ts | 6 +++--- tests/login.spec.ts | 2 +- tests/twilio.spec.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/db.spec.ts b/tests/db.spec.ts index 1b7bf4f..e18c69a 100644 --- a/tests/db.spec.ts +++ b/tests/db.spec.ts @@ -3,7 +3,7 @@ import { test } from './test'; const host = 'http://localhost:5173'; -test("User can't save profile without session cookie", async ({ page, context }) => { +test.only("User can't save profile without session cookie", async ({ page, context }) => { const res = await context.request.fetch(host + '/db', { method: 'post', headers: { @@ -29,7 +29,7 @@ that info is derived from the session cookie - User 6 fails to delete another user */ -test.describe('Household Invites', () => { +test.describe.only('Household Invites', () => { test.beforeAll(async ({ utils }) => { await Promise.all([ utils.deleteUserAndHousehold('+12015550001'), @@ -90,7 +90,7 @@ test.describe('Household Invites', () => { }); }); -test.describe('Friend Requests', () => { +test.describe.only('Friend Requests', () => { test.beforeAll(async ({ utils }) => { await Promise.all([ utils.deleteUserAndHousehold('+12015550005'), diff --git a/tests/login.spec.ts b/tests/login.spec.ts index 2fd9708..f8202aa 100644 --- a/tests/login.spec.ts +++ b/tests/login.spec.ts @@ -8,7 +8,7 @@ test.beforeEach(async ({ utils }) => { [token] = await Promise.all([utils.createExpiredLink(18), utils.createUserWithNothing(18)]); }); -test('Redirect to login page w/ prefilled phone num on expired magic link', async ({ page }) => { +test.only('Redirect to login page w/ prefilled phone num on expired magic link', async ({ page }) => { test.skip(!token, "Couldn't generate expired link"); await page.goto(`http://localhost:5173/login/${token}`); diff --git a/tests/twilio.spec.ts b/tests/twilio.spec.ts index 764d956..2966fdb 100644 --- a/tests/twilio.spec.ts +++ b/tests/twilio.spec.ts @@ -3,7 +3,7 @@ import { test } from './test'; const host = 'http://localhost:5173'; -test.describe('Twilio', () => { +test.describe.only('Twilio', () => { test.beforeAll(async ({ utils }) => { await Promise.all([ utils.deleteUserAndHousehold('+12015550012'),