feat: test id do footer do menu e container

This commit is contained in:
marlon passos 2023-03-29 13:47:31 -03:00
parent 6a12c304e1
commit 4ce143ac45
4 changed files with 9 additions and 6 deletions

View File

@ -65,7 +65,7 @@ export function MenuTop() {
className={styles["page-header__container-login"]}
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
href="/"
aria-label="Carrinho"

View File

@ -8,7 +8,10 @@ import styles from "./footer.module.scss";
const Footer = () => {
return (
<footer className={styles["page-footer"]}>
<footer
className={styles["page-footer"]}
data-testid="footer__container"
>
<Newsletter />
<FooterTop />
<FooterBottom />

View File

@ -12,7 +12,7 @@ const Institucional = () => {
};
return (
<section
data-testid="footer__menuTitle"
data-testid="footer__menuContainer"
className={styles["page-footer__container"]}>
<div className={styles["container-title"]} onClick={handleMenuFooter}>
<Title
@ -29,7 +29,7 @@ const Institucional = () => {
<div className={isOpen ? styles["active"] : styles["container-link"]}>
<Link
data-testid="footer__menuItem"
testId="footer__menuItem"
className={styles["link"]}
link="/"
text="Quem Somos"

View File

@ -2,7 +2,7 @@ export interface LinkProps {
link: string;
text: string;
className: string;
testid?: string;
testId?: string;
}
const Link = (props: LinkProps) => {
@ -11,7 +11,7 @@ const Link = (props: LinkProps) => {
<a
href={link}
className={className}
data-testid={props.testid}
data-testid={props.testId}
>
{text}
</a>