refactor: clean up boilerplate + init request section

This commit is contained in:
liyasthomas
2021-12-02 10:28:29 +05:30
parent 63005c01ce
commit 99b9ffd293
19 changed files with 279 additions and 130 deletions

View File

@@ -1,28 +1,21 @@
context("Basic", () => {
beforeEach(() => {
cy.visit("/")
})
it("basic nav", () => {
cy.url()
.should("eq", "http://localhost:3333/")
cy.url().should("eq", "http://localhost:3333/")
cy.contains("[Home Layout]")
.should("exist")
cy.contains("[Home Layout]").should("exist")
cy.get("#input")
.type("Vitesse{Enter}")
.url()
.should("eq", "http://localhost:3333/hi/Vitesse")
.should("eq", "http://localhost:3333/r/Vitesse")
cy.contains("[Default Layout]")
.should("exist")
cy.contains("[Default Layout]").should("exist")
cy.get(".btn")
.click()
.url()
.should("eq", "http://localhost:3333/")
cy.get(".btn").click().url().should("eq", "http://localhost:3333/")
})
it("markdown", () => {
@@ -31,7 +24,6 @@ context("Basic", () => {
.url()
.should("eq", "http://localhost:3333/about")
cy.get("pre.language-js")
.should("exist")
cy.get("pre.language-js").should("exist")
})
})