Files
hoppscotch/packages/hoppscotch-embed/cypress/integration/basic.spec.ts
2021-12-02 10:28:29 +05:30

30 lines
641 B
TypeScript

context("Basic", () => {
beforeEach(() => {
cy.visit("/")
})
it("basic nav", () => {
cy.url().should("eq", "http://localhost:3333/")
cy.contains("[Home Layout]").should("exist")
cy.get("#input")
.type("Vitesse{Enter}")
.url()
.should("eq", "http://localhost:3333/r/Vitesse")
cy.contains("[Default Layout]").should("exist")
cy.get(".btn").click().url().should("eq", "http://localhost:3333/")
})
it("markdown", () => {
cy.get("[title=\"About\"]")
.click()
.url()
.should("eq", "http://localhost:3333/about")
cy.get("pre.language-js").should("exist")
})
})