feat: test id do footer do menu e container
This commit is contained in:
parent
6a12c304e1
commit
4ce143ac45
@ -65,7 +65,7 @@ export function MenuTop() {
|
|||||||
className={styles["page-header__container-login"]}
|
className={styles["page-header__container-login"]}
|
||||||
data-testid="header__menuTop"
|
data-testid="header__menuTop"
|
||||||
>
|
>
|
||||||
<Link link="/" text="ENTRAR" className={styles["link"]} testid="header__enter" />
|
<Link link="/" text="ENTRAR" className={styles["link"]} testId="header__enter" />
|
||||||
<a
|
<a
|
||||||
href="/"
|
href="/"
|
||||||
aria-label="Carrinho"
|
aria-label="Carrinho"
|
||||||
|
@ -8,7 +8,10 @@ import styles from "./footer.module.scss";
|
|||||||
|
|
||||||
const Footer = () => {
|
const Footer = () => {
|
||||||
return (
|
return (
|
||||||
<footer className={styles["page-footer"]}>
|
<footer
|
||||||
|
className={styles["page-footer"]}
|
||||||
|
data-testid="footer__container"
|
||||||
|
>
|
||||||
<Newsletter />
|
<Newsletter />
|
||||||
<FooterTop />
|
<FooterTop />
|
||||||
<FooterBottom />
|
<FooterBottom />
|
||||||
|
@ -12,7 +12,7 @@ const Institucional = () => {
|
|||||||
};
|
};
|
||||||
return (
|
return (
|
||||||
<section
|
<section
|
||||||
data-testid="footer__menuTitle"
|
data-testid="footer__menuContainer"
|
||||||
className={styles["page-footer__container"]}>
|
className={styles["page-footer__container"]}>
|
||||||
<div className={styles["container-title"]} onClick={handleMenuFooter}>
|
<div className={styles["container-title"]} onClick={handleMenuFooter}>
|
||||||
<Title
|
<Title
|
||||||
@ -29,7 +29,7 @@ const Institucional = () => {
|
|||||||
|
|
||||||
<div className={isOpen ? styles["active"] : styles["container-link"]}>
|
<div className={isOpen ? styles["active"] : styles["container-link"]}>
|
||||||
<Link
|
<Link
|
||||||
data-testid="footer__menuItem"
|
testId="footer__menuItem"
|
||||||
className={styles["link"]}
|
className={styles["link"]}
|
||||||
link="/"
|
link="/"
|
||||||
text="Quem Somos"
|
text="Quem Somos"
|
||||||
|
@ -2,7 +2,7 @@ export interface LinkProps {
|
|||||||
link: string;
|
link: string;
|
||||||
text: string;
|
text: string;
|
||||||
className: string;
|
className: string;
|
||||||
testid?: string;
|
testId?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
const Link = (props: LinkProps) => {
|
const Link = (props: LinkProps) => {
|
||||||
@ -11,7 +11,7 @@ const Link = (props: LinkProps) => {
|
|||||||
<a
|
<a
|
||||||
href={link}
|
href={link}
|
||||||
className={className}
|
className={className}
|
||||||
data-testid={props.testid}
|
data-testid={props.testId}
|
||||||
>
|
>
|
||||||
{text}
|
{text}
|
||||||
</a>
|
</a>
|
||||||
|
Loading…
Reference in New Issue
Block a user