import { html } from "lit"; describe("TemsCardService", () => { it("should renders correctly with minimal props", () => { cy.mount( html``, ); cy.contains("Test Header").should("be.visible"); cy.contains("Test Content").should("be.visible"); }); it("should renders correctly with full props", () => { cy.mount(html``); cy.contains("Test Header"); cy.contains("Test Content"); cy.get(".imgLeft").should( "have.css", "background-image", 'url("https://placehold.co/420x500")', ); cy.get(".imgRight").should( "have.css", "background-image", 'url("https://placehold.co/420x500")', ); }); it("should not render images when not provided", () => { cy.mount( html``, ); cy.get(".imgLeft").should("not.exist"); cy.get(".imgRight").should("not.exist"); }); });