fix(cases): um só convite ao WhatsApp no fim do case e testes alinhados
This commit is contained in:
1 parent
2fd8b063d9
commit
d356c364e0
7 files changed
+124
-197
No files matched your search
@@ -77,7 +77,7 @@ describe("CasesPage: cases de cliente", () => {
|
||||
).toBeNull();
|
||||
});
|
||||
|
||||
it("path: contact -> 'Falar sobre meu projeto', and the list of clients opens with Lavação 047 and ends with the SEV", () => {
|
||||
it("path: contact -> 'Falar sobre meu projeto', and the list of clients follows the showcase: the SEV first, then Lavação 047, SC Plus and AS Serviços", () => {
|
||||
const { container } = render(<CasesPage />);
|
||||
|
||||
expect(
|
||||
@@ -89,8 +89,16 @@ describe("CasesPage: cases de cliente", () => {
|
||||
expect(clientTitles).toEqual(
|
||||
clientCasesForListing.map(({ title }) => title),
|
||||
);
|
||||
expect(clientTitles[0]).toBe("Lavação 047");
|
||||
expect(clientTitles[clientTitles.length - 1]).toBe("SEV Moda Íntima");
|
||||
expect(clientTitles).toEqual([
|
||||
"SEV Moda Íntima",
|
||||
"Lavação 047",
|
||||
"SC Plus Aquicultura",
|
||||
"AS Serviços",
|
||||
]);
|
||||
// um botão de contato só na página: o do fecho
|
||||
expect(
|
||||
screen.getAllByRole("link", { name: buttonLabels.contact }),
|
||||
).toHaveLength(1);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user