From d727fdb369caebd57cb0d4c85acc44c98d8d8a48 Mon Sep 17 00:00:00 2001 From: marlon passos Date: Wed, 29 Mar 2023 08:22:08 -0300 Subject: [PATCH] feat: adiciona os tests id do header e do title --- src/components/Header/Header.tsx | 49 ++++++++++++++++++--------- src/components/Header/HeaderLinks.tsx | 6 ++-- src/components/Header/SearchBar.tsx | 1 + src/components/Main/Main.tsx | 35 ++++++++++++++----- src/components/link/Link.tsx | 7 +++- 5 files changed, 70 insertions(+), 28 deletions(-) diff --git a/src/components/Header/Header.tsx b/src/components/Header/Header.tsx index 509f5a7..d80268f 100644 --- a/src/components/Header/Header.tsx +++ b/src/components/Header/Header.tsx @@ -16,7 +16,10 @@ const Header = () => { }; return ( -
+
@@ -35,24 +38,15 @@ const Header = () => { onClick={activeMenuMobile} />
- + -
- - - - -
+
@@ -65,4 +59,27 @@ const Header = () => { ); }; +export function MenuTop() { + return ( +
+ + + + +
+ ) +} + export { Header }; diff --git a/src/components/Header/HeaderLinks.tsx b/src/components/Header/HeaderLinks.tsx index bfe2059..9087bda 100644 --- a/src/components/Header/HeaderLinks.tsx +++ b/src/components/Header/HeaderLinks.tsx @@ -3,11 +3,13 @@ import styles from "./header.module.scss"; const HeaderLinks = () => { return ( - <> +
- +
); }; diff --git a/src/components/Header/SearchBar.tsx b/src/components/Header/SearchBar.tsx index e39d8c1..da6a598 100644 --- a/src/components/Header/SearchBar.tsx +++ b/src/components/Header/SearchBar.tsx @@ -6,6 +6,7 @@ const SearchBar = () => { return (
{ +export const Main = () => { return (
-
- - - INSTITUCIONAL -
-

INSTITUCIONAL

+ +
); }; -export { Main }; +export const Breadcrumb = () => { + return ( +
+ + + INSTITUCIONAL +
+ ) +} + +export const InstitucionalTitle = () => { + return ( +

+ INSTITUCIONAL +

+ ) +} diff --git a/src/components/link/Link.tsx b/src/components/link/Link.tsx index 7043770..75a6bb6 100644 --- a/src/components/link/Link.tsx +++ b/src/components/link/Link.tsx @@ -2,12 +2,17 @@ export interface LinkProps { link: string; text: string; className: string; + testid?: string; } const Link = (props: LinkProps) => { const { link, text, className } = props; return ( - + {text} );