From 9bf34a5cf7e7f4329f1fae95b495bc7619d2395c Mon Sep 17 00:00:00 2001 From: Okechi Jones-Williams Date: Mon, 11 May 2026 13:32:14 +0100 Subject: [PATCH] Fix app.ts --- tests/e2e/web/specs/signIn.spec.ts | 67 ++---------------------------- 1 file changed, 3 insertions(+), 64 deletions(-) diff --git a/tests/e2e/web/specs/signIn.spec.ts b/tests/e2e/web/specs/signIn.spec.ts index fb2b779b..7537d21a 100644 --- a/tests/e2e/web/specs/signIn.spec.ts +++ b/tests/e2e/web/specs/signIn.spec.ts @@ -3,72 +3,11 @@ import {expect, test} from '../fixtures/signInFixture' test.describe('when given valid input', () => { test('should be able to sign in to an available account', async ({ app, -<<<<<<< HEAD - signedOutAccount: account, + signedOutAccount, }) => { - await app.signinWithEmail(account) + await app.signinWithEmail(signedOutAccount) await app.home.goToHomePage() - await app.home.verifySignedInHomePage(account.display_name) -======= - dev_one_account - }) => { - await app.signinWithEmail(dev_one_account) - await app.home.goToHomePage() - await app.home.verifySignedInHomePage(dev_one_account.display_name) - }) - - // test('Trial', async ({ - // app, - // dev_one_account - // }) => { - // await app.signinWithEmail(dev_one_account) - // await app.home.clickPeopleLink() - // }) - - test('should successfully delete an account created via email and password', async ({ - app, - signedOutAccount: account, - }) => { - await app.registerWithEmail(fakerAccount) - await app.skipOnboardingHeadToProfile(fakerAccount) - - //Verify displayed information is correct - await app.profile.verifyDisplayName(fakerAccount.display_name) - - //Verify database info - const dbInfo = await userInformationFromDb(fakerAccount) - - await expect(dbInfo.user.name).toContain(fakerAccount.display_name) - await expect(dbInfo.user.username).toContain(fakerAccount.username) - - await app.deleteProfileFromSettings() - }) - - test('should successfully delete an account created via google auth', async ({ - app, - googleAccountTwo, - headless, - }) => { - test.skip(headless, 'Google popup auth test requires headed mode') - await app.home.goToRegisterPage() - await app.auth.signInToGoogleAccount( - googleAccountTwo.email, - googleAccountTwo.display_name, - googleAccountTwo.username, - ) - await app.skipOnboardingHeadToProfile(googleAccountTwo) - - //Verify displayed information is correct - await app.profile.verifyDisplayName(googleAccountTwo.display_name) - - //Verify database info - const dbInfo = await userInformationFromDb(googleAccountTwo) - - await expect(dbInfo.user.name).toContain(googleAccountTwo.display_name) - await expect(dbInfo.user.username).toContain(googleAccountTwo.username) - - await app.deleteProfileFromSettings() ->>>>>>> 35402a77 (Updated People page) + await app.home.verifySignedInHomePage(signedOutAccount.display_name) }) test('the profile count should update successfully when applying a filter', async ({