From f4cee42401d95306faaa2b50a4733fbb17d8bce0 Mon Sep 17 00:00:00 2001 From: Noah Onyejese <129368606+noahonyejese@users.noreply.github.com> Date: Wed, 19 Feb 2025 12:42:37 +0100 Subject: [PATCH 01/16] chore: adjusted test scripts --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7ec678de96..f50e66a855 100644 --- a/package.json +++ b/package.json @@ -36,9 +36,9 @@ "postversion": "git push --follow-tags", "release:npm": "yarn build:npm && yarn publish app", "e2e:dev": "E2E_BASE_URL=http://localhost:3000 yarn playwright test", - "e2e:dev:ssl": "E2E_BASE_URL=https://localhost:3000 yarn playwright test", + "e2e:dev:ssl": "E2E_BASE_URL=https://localhost:3000 E2E_ENV=true yarn playwright test", "e2e:ui": "E2E_BASE_URL=http://localhost:3000 yarn playwright test --ui", - "e2e:ui:ssl": "E2E_BASE_URL=https://localhost:3000 yarn playwright test --ui", + "e2e:ui:ssl": "E2E_BASE_URL=https://localhost:3000 E2E_ENV=true yarn playwright test --ui", "e2e": "playwright test", "cube": "NODE_ENV=development ts-node app/scripts/cube.ts", "dev:circular-deps": "madge --warning --extensions js,jsx,ts,tsx -b ./app -c ./app/pages/ --ts-config ./app/tsconfig.json | bun scripts/circular-deps-analysis.ts -", From 444b980fc8f8c4779e32a2f77750e331ff11c190 Mon Sep 17 00:00:00 2001 From: Noah Onyejese <129368606+noahonyejese@users.noreply.github.com> Date: Wed, 19 Feb 2025 12:43:04 +0100 Subject: [PATCH 02/16] refactor: Added test ids --- .../color-palettes/color-palette-types.tsx | 1 + .../profile-color-palette-content.tsx | 12 +++++++----- .../color-palettes/profile-color-palette-form.tsx | 15 +++++++++------ 3 files changed, 17 insertions(+), 11 deletions(-) diff --git a/app/login/components/color-palettes/color-palette-types.tsx b/app/login/components/color-palettes/color-palette-types.tsx index 124384343c..0ab0634aad 100644 --- a/app/login/components/color-palettes/color-palette-types.tsx +++ b/app/login/components/color-palettes/color-palette-types.tsx @@ -241,6 +241,7 @@ const CategoricalColorPaletteCreator = (props: ColorPaletteCreatorProps) => { @@ -164,6 +165,7 @@ const ColorPaletteRow = ({ return ( onEdit(paletteId)}> + + + Edit Color Palette + + - - - Edit Color Palette - - diff --git a/app/login/components/color-palettes/profile-color-palette-form.tsx b/app/login/components/color-palettes/profile-color-palette-form.tsx index b510bc35c4..426b03c1c0 100644 --- a/app/login/components/color-palettes/profile-color-palette-form.tsx +++ b/app/login/components/color-palettes/profile-color-palette-form.tsx @@ -191,6 +191,7 @@ const ProfileColorPaletteForm = ({ @@ -165,7 +165,7 @@ const ColorPaletteRow = ({ return (