From 0b7aa2f1413208594b1376bd2ec16353f89b056e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9=20=D0=91=D0=B0=D0=B1?= =?UTF-8?q?=D1=83=D1=88=D0=BA=D0=B8=D0=BD?= Date: Tue, 3 Jun 2025 12:07:49 +0200 Subject: [PATCH] add e2e tests --- .../Spots/SpotsList/SpotListItem.tsx | 1 + .../ProjectDropdown/ProjectDropdown.tsx | 2 +- .../SelectDateRange/SelectDateRange.tsx | 3 ++ .../SessionHeader/SessionHeader.tsx | 2 +- frontend/jest.config.mjs | 4 +++ frontend/tests/playwright/auth-state.json | 18 ++++++---- frontend/tests/playwright/dashboards.spec.ts | 4 +-- frontend/tests/playwright/sessionList.spec.ts | 2 -- frontend/tests/playwright/sign-in.spec.ts | 3 -- ...sessionList.spec copy.ts => spots.spec.ts} | 17 +++++----- .../{test-1.spec.ts => whitescreen.spec.ts} | 33 +++++++++++-------- tests/playwright/auth-state.json | 20 +++++------ 12 files changed, 60 insertions(+), 49 deletions(-) rename frontend/tests/playwright/{sessionList.spec copy.ts => spots.spec.ts} (53%) rename frontend/tests/playwright/{test-1.spec.ts => whitescreen.spec.ts} (52%) diff --git a/frontend/app/components/Spots/SpotsList/SpotListItem.tsx b/frontend/app/components/Spots/SpotsList/SpotListItem.tsx index a06a71404..6a200c330 100644 --- a/frontend/app/components/Spots/SpotsList/SpotListItem.tsx +++ b/frontend/app/components/Spots/SpotsList/SpotListItem.tsx @@ -215,6 +215,7 @@ export function GridItem({ className={`bg-white rounded-lg overflow-hidden shadow-sm border ${ isSelected ? 'border-teal/30' : '' } transition flex flex-col items-start hover:border-teal`} + data-test-id="spot-list-item" >
-