Merge pull request #32 from kyuno053/fix/layout-settings-page-width-test

fix(e2e): mettre à jour le test layout pour la largeur des pages settings
This commit is contained in:
kyuno053 2026-08-19 22:04:13 +02:00 committed by GitHub
commit f9ad3710b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -132,7 +132,7 @@ describe("Page width — full-bleed pages vs. centered reading columns (#21 regr
cy.viewport(1600, 900);
});
it("stretches the planning page and recipe catalog across the full content width", () => {
it("stretches the planning page, recipe catalog, and settings pages across the full content width", () => {
cy.intercept("GET", /\/planning\?/, { statusCode: 200, body: null });
cy.visit("/");
assertFillsContentWidth(".planning-page");
@ -141,14 +141,17 @@ describe("Page width — full-bleed pages vs. centered reading columns (#21 regr
cy.intercept("GET", "**/profile/disliked-ingredients", { statusCode: 200, body: [] });
cy.visit("/recettes");
assertFillsContentWidth(".recipes-page");
// Settings pages (Compte/Préférences/Foyer) used to be capped at
// max-width: 56rem, cramped in a centered column on wide viewports —
// that cap was dropped so they fill the width like every other page.
cy.visit("/parametres/compte");
assertFillsContentWidth(".settings-page");
});
it("centers the Liste de courses stub and settings pages, with equal space on both sides", () => {
it("centers the Liste de courses stub, with equal space on both sides", () => {
cy.visit("/liste-de-courses");
assertCenteredColumn(".coming-soon-page", 640); // max-width: 40rem
cy.visit("/parametres/compte");
assertCenteredColumn(".settings-page", 896); // max-width: 56rem
});
/** Fills `.app-content`'s available (padding-excluded) width, within a couple px of scrollbar/rounding slack. */