From 479eea1bda5bbe37d634ad0c985c41eac74ec0be Mon Sep 17 00:00:00 2001 From: afolasope Date: Tue, 10 Sep 2024 01:50:35 +0100 Subject: [PATCH 1/3] create project tests --- apps/frontend/playwright.config.ts | 1 + apps/frontend/src/layout/partials/Navbar.tsx | 8 +- apps/frontend/tests/projects/project.spec.ts | 145 +++++++++++++++++++ 3 files changed, 153 insertions(+), 1 deletion(-) create mode 100644 apps/frontend/tests/projects/project.spec.ts diff --git a/apps/frontend/playwright.config.ts b/apps/frontend/playwright.config.ts index a72372ca..840943b7 100644 --- a/apps/frontend/playwright.config.ts +++ b/apps/frontend/playwright.config.ts @@ -13,6 +13,7 @@ import { ONBOARDED_USER_FILE } from "./tests/utils/constants"; */ export default defineConfig({ testDir: "./tests", + timeout: 80000, /* Run tests in files in parallel */ fullyParallel: true, /* Fail the build on CI if you accidentally left test.only in the source code. */ diff --git a/apps/frontend/src/layout/partials/Navbar.tsx b/apps/frontend/src/layout/partials/Navbar.tsx index 20ee6bea..b597e86c 100644 --- a/apps/frontend/src/layout/partials/Navbar.tsx +++ b/apps/frontend/src/layout/partials/Navbar.tsx @@ -88,7 +88,10 @@ export const Navbar = () => {

Project

- + } @@ -107,10 +110,12 @@ export const Navbar = () => { {projects.map((item) => { return ( { switchProject(item as Project); }} + className={cn(item?.slug === project?.slug ? "active" : "")} > } @@ -147,6 +152,7 @@ export const Navbar = () => {