From 0c32456e72f89337455f5e9706b73e165700a739 Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Sun, 23 Apr 2023 13:26:18 +0300 Subject: [PATCH] Initial builds E2E tests --- app/components/BuildCard.tsx | 10 ++- app/components/Combobox.tsx | 1 + app/db/models/builds/countByUserId.sql | 6 +- app/db/models/builds/queries.server.ts | 11 ++- app/db/seed/constants.ts | 7 ++ app/db/seed/index.ts | 19 ++--- app/routes/calendar/new.tsx | 2 +- app/routes/u.$identifier.tsx | 15 +++- app/routes/u.$identifier/builds/index.tsx | 6 +- app/routes/u.$identifier/builds/new.tsx | 4 +- app/utils/playwright.ts | 25 +++++- e2e/builds.spec.ts | 99 +++++++++++++++++++++++ 12 files changed, 181 insertions(+), 24 deletions(-) create mode 100644 app/db/seed/constants.ts create mode 100644 e2e/builds.spec.ts diff --git a/app/components/BuildCard.tsx b/app/components/BuildCard.tsx index 20f1139af..2b6647e66 100644 --- a/app/components/BuildCard.tsx +++ b/app/components/BuildCard.tsx @@ -84,7 +84,10 @@ export function BuildCard({ build, owner, canEdit = false }: BuildProps) { } = build; return ( -