From ad1d1a47d65153c52a606c0fcea8d2d81d89b1a6 Mon Sep 17 00:00:00 2001 From: Ivan <8611739+IRBorisov@users.noreply.github.com> Date: Thu, 6 Mar 2025 22:26:08 +0300 Subject: [PATCH] T: Add logout test --- rsconcept/frontend/playwright.config.ts | 1 + .../src/app/Navigation/NavigationButton.tsx | 21 ++++++------------- .../src/app/Navigation/UserButton.tsx | 6 +++++- .../frontend/src/app/Navigation/UserMenu.tsx | 6 +++++- .../src/components/Dropdown/Dropdown.tsx | 1 + rsconcept/frontend/tests/auth.spec.ts | 15 ++++++++++++- 6 files changed, 32 insertions(+), 18 deletions(-) diff --git a/rsconcept/frontend/playwright.config.ts b/rsconcept/frontend/playwright.config.ts index 66e16690..d7754138 100644 --- a/rsconcept/frontend/playwright.config.ts +++ b/rsconcept/frontend/playwright.config.ts @@ -5,6 +5,7 @@ export default defineConfig({ forbidOnly: !!process.env.CI, retries: process.env.CI ? 2 : 0, reporter: 'list', + fullyParallel: true, projects: [ { name: 'Desktop Chrome', diff --git a/rsconcept/frontend/src/app/Navigation/NavigationButton.tsx b/rsconcept/frontend/src/app/Navigation/NavigationButton.tsx index 683a311b..95002f92 100644 --- a/rsconcept/frontend/src/app/Navigation/NavigationButton.tsx +++ b/rsconcept/frontend/src/app/Navigation/NavigationButton.tsx @@ -1,32 +1,23 @@ import clsx from 'clsx'; -import { type Styling, type Titled } from '@/components/props'; +import { type Styling } from '@/components/props'; import { globalIDs } from '@/utils/constants'; -interface NavigationButtonProps extends Titled, Styling { +interface NavigationButtonProps extends Styling { text?: string; + title?: string; icon: React.ReactNode; onClick?: (event: React.MouseEvent) => void; } -export function NavigationButton({ - icon, - title, - className, - style, - titleHtml, - hideTitle, - onClick, - text -}: NavigationButtonProps) { +export function NavigationButton({ icon, title, className, style, onClick, text }: NavigationButtonProps) { return (