feat(cases): adiciona o case Julia Beauty com vídeo de rolagem
This commit is contained in:
1 parent
594daecd2b
commit
bcdf0099c5
26 files changed
+159
-42
No files matched your search
@@ -20,7 +20,13 @@ import {
|
||||
const MAX_BYTES = 3 * 1024 * 1024;
|
||||
const publicFile = (path: string) => join(process.cwd(), "public", path);
|
||||
/** Os projetos de cliente que a home entrega à vitrine. */
|
||||
const HOME_IDS = ["sev-modaintima", "lavacao-047", "sc-plus", "as-servicos"];
|
||||
const HOME_IDS = [
|
||||
"sev-modaintima",
|
||||
"lavacao-047",
|
||||
"sc-plus",
|
||||
"as-servicos",
|
||||
"julia-beauty",
|
||||
];
|
||||
|
||||
describe("showcase length", () => {
|
||||
it.each(SHOWCASE)("$id has at most two chapters", (config) => {
|
||||
@@ -35,7 +41,7 @@ describe("showcase length", () => {
|
||||
);
|
||||
});
|
||||
|
||||
it("keeps the whole Projects section within about three and a half screens", () => {
|
||||
it("keeps the whole Projects section within about four screens", () => {
|
||||
// o casco da vitrine tem (pin: 1 tela menos o cabeçalho) + (soma dos pesos) telas; o título e o botão de Projetos
|
||||
// somam ~468 px (0,52 tela de 900 px) fora dela, e o cabeçalho fixo tem 68 px
|
||||
const SCREEN = 900;
|
||||
@@ -48,7 +54,7 @@ describe("showcase length", () => {
|
||||
true,
|
||||
);
|
||||
const section = SCREEN - HEADER + total * SCREEN + OUTSIDE;
|
||||
expect(section / SCREEN).toBeLessThanOrEqual(3.5);
|
||||
expect(section / SCREEN).toBeLessThanOrEqual(4);
|
||||
expect(total).toBeGreaterThan(1.5);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user