Skip to content

[Housekeeping] Organizing the test structure and files, adding fix for issue #36 (None descriptive error)#38

Merged
MartinBraquet merged 19 commits intoCompassConnections:mainfrom
O-Bots:main
Mar 16, 2026
Merged

[Housekeeping] Organizing the test structure and files, adding fix for issue #36 (None descriptive error)#38
MartinBraquet merged 19 commits intoCompassConnections:mainfrom
O-Bots:main

Conversation

@O-Bots
Copy link
Collaborator

@O-Bots O-Bots commented Mar 15, 2026

Description

  • Updated ProfilePage: In some cases removed the use of "one shot grabs" using .textContent() to prevent flaky tests
  • Merged "verifyInterestedInConnectingWith" and "verifyRelationShipTypeAndInterest" into "verifySeeking" to match ui changes
  • Added test for entering profile information post signup flow
  • Fix: Added fix for None descriptive error issue [Profile] None discriptive error when trying to save your profile with an empty "Display name" field #36
  • Updated signUp.spec.ts to use new fixture
  • Updated Account information variable names
  • Deleted "deleteUserFixture.ts" as it was incorporated into the "base.ts" file

O-Bots added 16 commits March 15, 2026 19:42
Added more compatibility questions
Added compatibility question tests and verifications
Updated tests to cover Keywords and Headline changes recently made
Updated tests to cover all of the big5 personality traits
…es tsconfig/ts-node to test files and imported modules....there was a syntax error:

SyntaxError: tests/e2e/web/pages/homePage.ts: Unexpected token (2:0)
…" using .textContent() to prevent flaky tests

Added test for entering profile information post signup flow
…AndInterest" into "verifySeeking" to match ui changes
Updated signUp.spec.ts to use new fixture
Updated Account information variable names
Deleted "deleteUserFixture.ts" as it was incorporated into the "base.ts" file
@vercel
Copy link

vercel bot commented Mar 15, 2026

@O-Bots is attempting to deploy a commit to the Compass Team on Vercel.

A member of the Team first needs to authorize it.

@O-Bots O-Bots requested a review from MartinBraquet March 15, 2026 19:52
@codecov
Copy link

codecov bot commented Mar 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link
Member

@MartinBraquet MartinBraquet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, much cleaner!

One useful thing you may consider for the future is to DRY the flow through different pages using functions like in tests/e2e/web/specs/signUp.spec.ts:

async function progressToRequiredForm(
  homePage: HomePage,
  authPage: AuthPage,
  account: UserAccountInformation,
  onboardingPage: OnboardingPage,
) {
  await homePage.gotToHomePage()
  await homePage.clickSignUpButton()
  await authPage.fillEmailField(account.email)
  await authPage.fillPasswordField(account.password)
  await authPage.clickSignUpWithEmailButton()
  await onboardingPage.clickSkipOnboardingButton()
}

Starting from the home page in each test is not modular. If we add a page to the onboarding flow, we would need to update each test. But if we have a function used in each (onboarding) test that brings us from home page to signup to profiles page, we just need to update that one function.

@MartinBraquet
Copy link
Member

I updated a few minor things:
4a50310
Lmk if I did anything wrong!

@O-Bots
Copy link
Collaborator Author

O-Bots commented Mar 16, 2026

@MartinBraquet How do I pick up your changes and edit them myself? without completing the PR...is that possible?

@MartinBraquet
Copy link
Member

I pushed on your main branch, so you can just pull them locally in your IDE or via git pull origin main.

@MartinBraquet
Copy link
Member

Lmk when I can merge then!

@O-Bots
Copy link
Collaborator Author

O-Bots commented Mar 16, 2026

We are good to merge after CI is over

await authPage.fillPasswordField(fakerAccount.password)
await authPage.clickSignUpWithEmailButton()
await onboardingPage.clickSkipOnboardingButton()
await progressToRequiredForm(homePage,authPage,fakerAccount,onboardingPage)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👍

@MartinBraquet MartinBraquet merged commit cfeab02 into CompassConnections:main Mar 16, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants