2023-10-23 23:33:39 +02:00
|
|
|
import { Footer } from "../../../components/Footer"
|
2022-08-23 21:51:20 +02:00
|
|
|
|
2023-10-23 23:33:39 +02:00
|
|
|
describe("<Footer />", () => {
|
|
|
|
it("should render with appropriate link tag version", () => {
|
|
|
|
const version = "1.0.0"
|
2022-08-23 21:51:20 +02:00
|
|
|
cy.mount(<Footer version={version} />)
|
2023-10-23 23:33:39 +02:00
|
|
|
cy.contains("Thream")
|
|
|
|
.get("[data-cy=version-link-website]")
|
|
|
|
.should("have.text", `website v${version}`)
|
2022-08-23 21:51:20 +02:00
|
|
|
.should(
|
2023-10-23 23:33:39 +02:00
|
|
|
"have.attr",
|
|
|
|
"href",
|
|
|
|
`https://github.com/Thream/website/releases/tag/v${version}`,
|
2022-08-23 21:51:20 +02:00
|
|
|
)
|
|
|
|
})
|
|
|
|
})
|