refactor: clean up boilerplate + init request section
This commit is contained in:
@@ -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")
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user