Commit Graph

80 Commits

Author SHA1 Message Date
MartinBraquet
be358d8517 Clean 2026-03-02 17:31:45 +01:00
MartinBraquet
9924c3debf Fix rm 2026-03-01 17:42:00 +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
MartinBraquet
4722088fd0 Speed up e2e-dev.sh 2026-02-28 14:35:20 +01:00
MartinBraquet
432d2df449 Set npx capacitor-assets generate --android 2026-02-26 14:47:22 +01:00
MartinBraquet
0bfc714a41 Clean 2026-02-20 17:41:53 +01:00
Martin Braquet
ba9b3cfb06 Add pretty formatting (#29)
* Test

* Add pretty formatting

* Fix Tests

* Fix Tests

* Fix Tests

* Fix

* Add pretty formatting fix

* Fix

* Test

* Fix tests

* Clean typeckech

* Add prettier check

* Fix api tsconfig

* Fix api tsconfig

* Fix tsconfig

* Fix

* Fix

* Prettier
2026-02-20 17:32:27 +01:00
Okechi Jones-Williams
1994697fa1 Adding onboarding E2E foundations and first tests (#30)
* .

* Centralizing config details

* Added data-testId attributes where necessary and started the onboarding flow scaffolding

* Continued onboarding test scaffolding

* Continued work on tests for the Onboarding flow

* .

* Updated "Want kids" options to be less flaky
Updated playwright.config so that expect timeout matching test timeout

* Continued updating front-end scaffolding

* .

* .

* .

* .

* Updated fixture function deleteUser: to also remove the database user information

* Rm

* Fix

* Fixes

---------

Co-authored-by: MartinBraquet <martin.braquet@gmail.com>
2026-02-20 16:56:26 +01:00
MartinBraquet
66526abeef Improve migration cleanup by using find command 2026-02-18 19:04:50 +01:00
MartinBraquet
1b3b40917b Seed dev_1 profile in db 2026-02-18 13:59:06 +01:00
MartinBraquet
c181c571c4 Update migration script to clear existing files and adjust timestamp 2026-02-18 13:58:36 +01:00
MartinBraquet
c8b7b85391 Add color-coded status and error messages to run_local_isolated.sh 2026-02-17 20:08:27 +01:00
MartinBraquet
20025c825f Fix 2026-02-17 17:41:42 +01:00
MartinBraquet
aec30cd5b5 Fix 2026-02-17 17:40:20 +01:00
MartinBraquet
78325cddfa Fix 2026-02-17 17:27:45 +01:00
MartinBraquet
0188a4ab51 Prepend npx 2026-02-17 16:07:07 +01:00
MartinBraquet
c47e693e69 Clean 2026-02-17 15:54:58 +01:00
MartinBraquet
e6d64f2668 Add test docs 2026-02-17 15:13:27 +01:00
MartinBraquet
ee1e894e2f Add e2e dev 2026-02-17 15:13:16 +01:00
MartinBraquet
9efd3e4510 Fix 2026-02-17 13:42:43 +01:00
MartinBraquet
4fda21c582 Fix 2026-02-17 13:40:53 +01:00
MartinBraquet
f7c0d77e9c Add local supabase for DB isolation 2026-02-17 12:10:17 +01:00
MartinBraquet
e001787e5c Add run_local_emulated.sh 2026-02-06 13:05:48 +01:00
MartinBraquet
dc073ef0f9 Fix live update 2025-12-15 16:51:47 +02:00
MartinBraquet
a677df2fdd Add live update info 2025-12-15 16:49:15 +02:00
MartinBraquet
2253a734b1 Fix 2025-12-15 10:52:39 +02:00
MartinBraquet
dca08a6d81 Clean 2025-12-15 10:49:21 +02:00
MartinBraquet
f76c39bd1c Fix 2025-12-15 00:05:41 +02:00
MartinBraquet
d112d4e739 Fix 2025-12-15 00:01:00 +02:00
MartinBraquet
7dfec75ac0 Fix 2025-12-14 23:54:41 +02:00
MartinBraquet
3fd27131e2 Fix 2025-12-14 23:50:24 +02:00
MartinBraquet
c0b8df4ef9 Fix 2025-12-14 23:39:48 +02:00
MartinBraquet
238fed617f Fix 2025-12-14 23:19:02 +02:00
MartinBraquet
0d026d36d1 Add CD for android live update 2025-12-14 23:05:23 +02:00
Nicholas Chamberlain
ef7665c7da Add firebase emulator, Add registration script, Add signup spec (#22)
* add firebase emulator, add registration script, add signup spec

* Upgrade firebase emulator and make it pass the E2E tests

---------

Co-authored-by: MartinBraquet <martin.braquet@gmail.com>
2025-12-06 23:43:46 +01:00
MartinBraquet
c4c9316386 Fix tests 2025-12-03 23:32:52 +01:00
Okechi Jones-Williams
ab612a3eca Add backend API unit tests (#21)
* setting up test structure

* .

* added playwright config file, deleted original playwright folder and moved "some.test" file

* continued test structure setup

* Updating test folder structure

* Added database seeding script and backend testing folder structure

* removed the database test

* Replaced db seeding script

* Updated userInformation.ts to use values from choices.tsx

* merge prep

* removing extra unit test, moving api test to correct folder

* Pushing to get help with sql Unit test

* Updating get-profiles unit tests

* Added more unit tests

* .

* Added more unit tests

* Added getSupabaseToken unit test

* .

* excluding supabase token test so ci can pass

* .

* Seperated the seedDatabase func into its own file so it can be accessed seperatly

* Fixed failing test

* .

* .

* Fix tests

* Fix lint

* Clean

---------

Co-authored-by: MartinBraquet <martin.braquet@gmail.com>
2025-11-30 00:03:16 +01:00
MartinBraquet
f323034eed Clean 2025-11-26 23:11:55 +01:00
Nicholas Chamberlain
f7fb0c6c82 Test/e2e login auth (#19)
* Add basic test for login and auth state

* Remove test file

* Change login setup

* Apply suggestions from code review

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

* Change signin structure to use UI

* Fix URL loading

* Spin up backend server as well for E2E

---------

Co-authored-by: Martin Braquet <martin.braquet@gmail.com>
2025-11-18 23:17:00 +01:00
MartinBraquet
37ee7752c2 Fix build-web-view 2025-11-15 15:53:07 +01:00
MartinBraquet
fead7459d4 Clean 2025-11-15 14:12:06 +01:00
MartinBraquet
780f935fea Fix webview live update 2025-11-14 18:53:25 +01:00
MartinBraquet
8bdbd5e4fe Add code coverage 2025-11-14 15:23:56 +01:00
MartinBraquet
d6b0bb4378 Ignore getServerSideProps on mobile 2025-11-14 12:26:37 +01:00
MartinBraquet
d790fae74a Add e2e script for local development 2025-11-13 13:11:53 +01:00
Okechi Jones-Williams
f954e3b2d7 Add database seeding script and backend testing folder structure (#18)
* setting up test structure

* added playwright config file, deleted original playwright folder and moved "some.test" file

* continued test structure setup

* Updating test folder structure

* Added database seeding script and backend testing folder structure

* removed the database test

* Replaced db seeding script

* Updated userInformation.ts to use values from choices.tsx
2025-11-11 19:00:07 +01:00
MartinBraquet
023a20f263 Add script to add test user to db 2025-11-09 20:20:22 +01:00
MartinBraquet
ac5c3b421d Upgrade 2025-11-03 23:45:53 +01:00
MartinBraquet
1dba2debc5 Clean 2025-11-03 20:27:32 +01:00
MartinBraquet
f91d9125e4 Ignore getStaticProps and getStaticPaths for mobile webview build 2025-11-02 13:09:00 +01:00