Add footer and hero specs

This commit is contained in:
Jeremy Thomas
2022-05-07 16:14:03 +01:00
parent 1eb7ec311e
commit a35710d012
4 changed files with 153 additions and 0 deletions

View File

@@ -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");
});
});
});