Skip to content

Commit

Permalink
only run old tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jho44 committed Feb 28, 2024
1 parent 11074c3 commit c68afc8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions tests/db.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -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'),
Expand Down Expand Up @@ -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'),
Expand Down
2 changes: 1 addition & 1 deletion tests/login.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand Down
2 changes: 1 addition & 1 deletion tests/twilio.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down

0 comments on commit c68afc8

Please sign in to comment.