mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-07-30 09:48:47 -04:00
Fix app.ts
This commit is contained in:
@@ -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 ({
|
||||
|
||||
Reference in New Issue
Block a user