diff options
Diffstat (limited to 'docs/cypress/integration/layout/footer.spec.js')
-rw-r--r-- | docs/cypress/integration/layout/footer.spec.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/cypress/integration/layout/footer.spec.js b/docs/cypress/integration/layout/footer.spec.js new file mode 100644 index 00000000..82614bf3 --- /dev/null +++ b/docs/cypress/integration/layout/footer.spec.js @@ -0,0 +1,17 @@ +describe("Layout/Footer", () => { + beforeEach(() => { + cy.visit("http://127.0.0.1:4000/cyp/layout/footer/"); + }); + + it("has a Footer", () => { + cy.get(".footer").should("exist"); + }); + + it("has a correct Footer", () => { + cy.get("#footer").then(($) => { + const cs = window.getComputedStyle($[0]); + expect(cs.backgroundColor).to.equal(Cypress.env("scheme-main-bis")); + expect(cs.padding).to.equal("48px 24px 96px"); + }); + }); +}); |