57 Commits

Author SHA1 Message Date
Okechi Jones-Williams
8b93251710 [Fix] Fix for issue #54 (#59)
* Fix for issue #54

* Linting and Prettier
2026-06-12 13:47:29 +02:00
Okechi Jones-Williams
dfd0dc98ac [Doc update] Udated testing.md (#56)
* Changed fixtures used in accounts that dont need to check sign-in functionality

* Updated testing doc: added fixture info and expanded on POM pattern

* Update testing.md

* Udated testing.md
Added Superbase emulator workaround
2026-06-10 17:06:29 +02:00
MartinBraquet
aefbf3e247 FIx E2E context manager 2026-05-29 03:50:38 +02:00
MartinBraquet
699184081d FIx E2E context manager 2026-05-29 02:18:10 +02:00
MartinBraquet
75a21b2701 Minor fixes 2026-05-29 00:36:02 +02:00
Okechi Jones-Williams
eaa0b4ce96 Fix #1 2026-05-28 22:29:50 +01:00
Okechi Jones-Williams
f49054876a Coderabbit suggestions 2026-05-28 21:33:48 +01:00
Okechi Jones-Williams
21a720fdcc Linting and Prettier 2026-05-28 19:32:44 +01:00
Okechi Jones-Williams
23eedd0fbb Added Tests for sending/recieving messages
Added tests for staring/favoriting profiles
Added testIds where necessary
Added messagesPage.ts
Updated peoplePage.ts
2026-05-28 19:32:44 +01:00
Okechi Jones-Williams
00e7662d60 Added a context manager to test with multiple accounts interacting with each other
Added an option to verify the users email when creating an account
2026-05-28 19:32:44 +01:00
Okechi Jones-Williams
4c2bd90431 Added tests for hiding profiles 2026-05-28 19:30:39 +01:00
Okechi Jones-Williams
585f9f28d1 Added more filter tests 2026-05-28 19:25:37 +01:00
Okechi Jones-Williams
178dfdc1b7 Continued work on filter tests
Added testid attributes to people page so the info from the results can be accessed
2026-05-28 19:25:37 +01:00
Okechi Jones-Williams
b32f468736 . 2026-05-28 19:21:56 +01:00
Okechi Jones-Williams
00a9a85ae2 Lint and Prettier 2026-05-28 19:21:56 +01:00
Okechi Jones-Williams
ab72f172d3 Updated People page
Added data test attributes to search.tsx and profile-grid.tsx
2026-05-28 19:21:56 +01:00
Okechi Jones-Williams
c1dacbd331 Updated peoplePage.ts: continued adding functions to use filters
Updated filters.tsx: added data testid
2026-05-28 19:21:56 +01:00
Okechi Jones-Williams
9bf34a5cf7 Fix app.ts 2026-05-28 19:21:56 +01:00
Okechi Jones-Williams
ede380a4e0 Updated People page 2026-05-28 19:21:56 +01:00
Okechi Jones-Williams
19e65cbe6c Linting and Prettier 2026-05-28 19:21:56 +01:00
Okechi Jones-Williams
ce0c7cd890 Changed POM/Fixture structure to use an app class to instantiate the page objects 2026-05-28 19:21:56 +01:00
Okechi Jones-Williams
1d898f34fc Changes requested 2026-05-28 19:21:56 +01:00
Okechi Jones-Williams
b3e3413620 Coderabbitai fix's 2026-05-28 19:21:56 +01:00
Okechi Jones-Williams
9571d9b0cd Formatting update, fixed homePage locator for signin 2026-05-28 19:21:56 +01:00
Okechi Jones-Williams
e0561b532b Linting and Prettier 2026-05-28 19:21:56 +01:00
Okechi Jones-Williams
ef63832ab8 Added checks to the deleteUser func to check if the accout exists
Added account deletion checks
2026-05-28 19:21:56 +01:00
Okechi Jones-Williams
89efb0ff01 Linting and Prettier 2026-05-28 19:21:56 +01:00
Okechi Jones-Williams
7bb8eeac7f Started work on Sign-in tests
Updated seedDatabase.ts to throw an error if the user already exists, to also add display names and usernames so they seedUser func acts like a normal basic user
Some organising of the google auth code
2026-05-28 19:21:56 +01:00
MartinBraquet
5129e8e343 Minor cleaning 2026-05-28 19:21:55 +01:00
MartinBraquet
253b30d2de Refactor sign-in test to improve profile count validation and asynchronous handling 2026-05-25 15:43:55 +02:00
MartinBraquet
b25df3670b Fix E2E tests 2026-05-24 16:37:49 +02:00
MartinBraquet
6b3269b1c5 Fix typo in profile count test and enhance validation for filter results 2026-05-23 20:06:14 +02:00
Martin Braquet
8e921e0a53 Fix unassigned variable (#52) 2026-05-21 17:50:52 +02:00
Okechi Jones-Williams
00c6f2566e [Syncing] Small PR to lay foundations for Testing filtering and to sync with upstream (#51)
* Added Database checks to the onboarding flow

* Added compatibility page setup
Added more compatibility questions

* Finished up the onboarding flow suite
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

* .

* Fix: Merge conflict

* .

* Fix: Added fix for None discriptive error issue #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

* Linting and Prettier

* Minor cleaning

* Organizing helper func

* Added Google account to the Onboarding flow

* Added account cleanup for google accounts

* Started work on Sign-in tests
Updated seedDatabase.ts to throw an error if the user already exists, to also add display names and usernames so they seedUser func acts like a normal basic user
Some organising of the google auth code

* Linting and Prettier

* Added checks to the deleteUser func to check if the accout exists
Added account deletion checks

* Linting and Prettier

* Formatting update, fixed homePage locator for signin

* .

* .

* .

* Coderabbitai fix's

* Fix

* Improve test utilities and stabilize onboarding flow tests

* Changes requested

* Changed POM/Fixture structure to use an app class to instantiate the page objects

* Apply suggestion from @MartinBraquet

* Delete .vscode/settings.json

* Apply suggestion from @MartinBraquet

* Apply suggestion from @MartinBraquet

* Apply suggestion from @MartinBraquet

* Linting and Prettier

* Updated People page

* Fix app.ts

* Updated peoplePage.ts: continued adding functions to use filters
Updated filters.tsx: added data testid

* Coderabbitai fix's

* .

* Explanded seeding to better reflect the different types of profiles

* Updated People page
Added data test attributes to search.tsx and profile-grid.tsx

* Lint and Prettier

* Test renamed

* CodeRabbit Suggestions

* .

* Apply suggestions from code review

Co-authored-by: Martin Braquet <martin.braquet@gmail.com>

---------

Co-authored-by: MartinBraquet <martin.braquet@gmail.com>
2026-05-20 20:02:00 +02:00
MartinBraquet
6aa9085739 Refactor signInFixture parameters in E2E test for clarity and update signinWithEmail usage accordingly 2026-04-05 15:59:30 +02:00
MartinBraquet
757ec77574 Make waitForURL optional in signinWithEmail E2E tests and refactor signInFixture method parameters 2026-04-05 14:47:40 +02:00
MartinBraquet
1f988d0f98 Refactor account deletion E2E tests: extract to dedicated deleteAccount.spec.ts file 2026-04-05 14:30:24 +02:00
MartinBraquet
4dd22b4194 Refactor account deletion E2E tests: extract to dedicated deleteAccount.spec.ts file 2026-04-05 14:14:43 +02:00
MartinBraquet
a6095b873a Remove redundant password field filler in Google auth E2E tests 2026-04-04 21:26:14 +02:00
Okechi Jones-Williams
73487af964 Changed POM/Fixture structure to use an app class to instantiate the page objects (#47)
* Added Database checks to the onboarding flow

* Added compatibility page setup
Added more compatibility questions

* Finished up the onboarding flow suite
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

* .

* Fix: Merge conflict

* .

* Fix: Added fix for None discriptive error issue #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

* Linting and Prettier

* Minor cleaning

* Organizing helper func

* Added Google account to the Onboarding flow

* Added account cleanup for google accounts

* Started work on Sign-in tests
Updated seedDatabase.ts to throw an error if the user already exists, to also add display names and usernames so they seedUser func acts like a normal basic user
Some organising of the google auth code

* Linting and Prettier

* Added checks to the deleteUser func to check if the accout exists
Added account deletion checks

* Linting and Prettier

* Added POM's for social and organisation page
Updated settings POM

* Formatting update, fixed homePage locator for signin

* .

* .

* .

* Coderabbitai fix's

* Fix

* Improve test utilities and stabilize onboarding flow tests

* Changes requested

* Seperated deletion tests from onboarding

* .

* Changed POM/Fixture structure to use an app class to instantiate the page objects

* Apply suggestion from @MartinBraquet

* Apply suggestion from @MartinBraquet

* Delete .vscode/settings.json

* Apply suggestion from @MartinBraquet

* Apply suggestions from code review

Co-authored-by: Martin Braquet <martin.braquet@gmail.com>

* Apply suggestion from @MartinBraquet

* Apply suggestion from @MartinBraquet

* Linting and Prettier

---------

Co-authored-by: MartinBraquet <martin.braquet@gmail.com>
2026-04-04 21:11:46 +02:00
MartinBraquet
e2cdfc01cd Remove unnecessary console logs and update Playwright reporter configuration 2026-04-04 14:34:50 +02:00
Okechi Jones-Williams
d2c9d12b39 test(e2e): add auth, settings, social and organization page coverage
* Added Database checks to the onboarding flow

* Added compatibility page setup
Added more compatibility questions

* Finished up the onboarding flow suite
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

* .

* Fix: Merge conflict

* .

* Fix: Added fix for None discriptive error issue #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

* Linting and Prettier

* Minor cleaning

* Organizing helper func

* Added Google account to the Onboarding flow

* .

* Added account cleanup for google accounts

* Started work on Sign-in tests
Updated seedDatabase.ts to throw an error if the user already exists, to also add display names and usernames so they seedUser func acts like a normal basic user
Some organising of the google auth code

* Linting and Prettier

* Added checks to the deleteUser func to check if the accout exists
Added account deletion checks

* Linting and Prettier

* Added POM's for social and organisation page
Updated settings POM

* Formatting update, fixed homePage locator for signin

* .

* .

* .

* Coderabbitai fix's

* Fix

* Improve test utilities and stabilize onboarding flow tests

* Changes requested

* Seperated deletion tests from onboarding

* Update `.coderabbit.yaml` with improved internationalization guidance and formatting adjustments

* Clean up `.vscode/settings.json` and add it to `.gitignore`

* Add Playwright E2E test guidelines to `.coderabbit.yaml`

* Standardize and improve formatting in `TESTING.md` for better readability and consistency.

* Refactor onboarding flow tests and related utilities; improve formatting and remove redundant tests.

---------

Co-authored-by: MartinBraquet <martin.braquet@gmail.com>
2026-04-04 14:21:40 +02:00
Okechi Jones-Williams
cfeab0278c [Housekeeping] Organizing the test structure and files, adding fix for issue #36 (None descriptive error) (#38)
* Added Database checks to the onboarding flow

* Added compatibility page setup
Added more compatibility questions

* Finished up the onboarding flow suite
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

* Fix: Added 'tsconfig-paths/register' to playwright config so it applies 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)

* .

* Updated ProfilePage: In some cases removed the use of "one shot grabs" using .textContent() to prevent flaky tests
Added test for entering profile information post signup flow

* Linting and Prettier

* Fix: Merge conflict

* Fix: Modified sortedAndFilteredAnswers to use "UseMemo" so that it doesnt run every time something changes

* .

* .

* Merged "verifyInterestedInConnectingWith" and "verifyRelationShipTypeAndInterest" into "verifySeeking" to match ui changes

* Added error message outlining the minimum character requirement for display names and usernames

* Updated displayName error message to show when editing the user profile post signup

* Fix: Added fix for None discriptive error issue #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

* Linting and Prettier

* Minor cleaning

* Organizing helper func

* Linting and Prettier

---------

Co-authored-by: MartinBraquet <martin.braquet@gmail.com>
2026-03-16 16:02:48 +01:00
MartinBraquet
f81932e14e Remove one skip 2026-03-13 15:55:55 +01:00
MartinBraquet
6b1813e129 Close modal before validating questions 2026-03-13 15:32:18 +01:00
MartinBraquet
0da158ce54 Update e2e test 2026-03-12 00:58:56 +01:00
MartinBraquet
fbda1caaf7 Fix e2e tests 2026-03-05 23:49:25 +01:00
MartinBraquet
6117e59226 Fix e2e tests 2026-03-04 15:47:56 +01:00
Okechi Jones-Williams
e115df8e11 [Onboarding Flow] Answer compatibility questions in the test suite for onboarding (#35)
* Fixed Type errors

* Added Database checks to the onboarding flow

* Updated Onboarding flow
Changed type ChildrenExpectation so that it can be used for database verification

* Added compatibility page setup
Added more compatibility questions

* Finished up the onboarding flow suite
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

* Apply suggestions from code review

---------

Co-authored-by: Martin Braquet <martin.braquet@gmail.com>
2026-03-04 11:05:56 +01:00
Okechi Jones-Williams
b18a6d7ff3 [Onboarding Flow] Added database checks to the onboarding flow (#34)
* Fixed Type errors

* Organizing testing utilities

* Added Database checks to the onboarding flow

* Updated Onboarding flow
Changed type ChildrenExpectation so that it can be used for database verification

* Added compatibility page setup
Added more compatibility questions

* Fix

* .

* Fix: Typo

* Fix: Faker usernames can no longer generate symbols

* Fix: Changed how work area is verified

* .

* .

* Fix: Trying to work in headed mode

* Fix: Change back to headless

* Fix: Added timeout after workArea selection

* .

* Clean e2e

* Improve E2E setup

* Prettier

* Log

* Fix: should pull test account from unique identifier like email, username or id; not the display name

* Source env vars in playwright directly

* Clean e2e data

* Clean test account id to be the same for email and username

* Fix import warning

* Add error handling

* Add log

* Temp remove env load

* Update

* Add logs and safeguards against using remote supabase during e2e tests

* Fix playwright report path in C@

* Remove locale log

* Check if userInformationFromDb loading with name instead of username was the issue

* Remove login log

* Check if initial work area names were the issue

* Ignore if no files found

* Cache Firebase emulators in CI

* Reload env vars in playwright

* It did not break tests...

* Clean verifyWorkArea

* Add caching for node modules in CI

* Add caching for node modules in CI (2)

* Do not raise if emulator not running during db seed

* Do not raise if using firebase emulator

* Fix supabase cache in CI

* Add Cache Playwright browsers in CI

* Fix

* Test cache

* Turn off unused supabase services to speed things up

* Back to good one

* Set CI=true

* api is required for client connection

* Add safeguards for missing supabase env vars

* Remove echo

* Remove supabase cache

---------

Co-authored-by: Martin Braquet <martin.braquet@gmail.com>
2026-03-01 01:25:56 +01:00