test(e2e): fluxos de contato, navegação, teclado e menu do celular mais rígidos
CI / verify (push) Failing after 7m13s
CI / e2e (push) Failing after 7m1s

This commit is contained in:
Evandro Fonseca Junior committed 2026-10-14 22:54:27 -03:00
1 parent 8903f3c57e
commit 02298779df
8 files changed
+321 -115

No files matched your search

+5 -5
View File
@@ -1,5 +1,5 @@
import { expect, type Page, test } from "@playwright/test";
import { DESKTOP, PHONE } from "./helpers";
import { DESKTOP_USE, PHONE_USE } from "./helpers";
/**
* (f) A home não tem trecho vazio, no computador (1440x900) e no celular (390x844): amostrada a cada ¼ de tela de
@@ -14,8 +14,8 @@ import { DESKTOP, PHONE } from "./helpers";
const STEP = 1 / 4;
const VIEWPORTS = [
{ name: "computador 1440x900", size: DESKTOP },
{ name: "celular 390x844", size: PHONE },
{ name: "computador 1440x900", use: DESKTOP_USE },
{ name: "celular 390x844 (isMobile, com toque)", use: PHONE_USE },
] as const;
interface Sample {
@@ -92,9 +92,9 @@ async function sampleHome(page: Page) {
return { samples, step, maxScroll, viewportHeight };
}
for (const { name, size } of VIEWPORTS) {
for (const { name, use } of VIEWPORTS) {
test.describe(`rolagem da home, ${name}`, () => {
test.use({ viewport: size });
test.use(use);
test("amostrada a cada ¼ de tela, nenhuma posição fica sem texto visível", async ({
page,