basic.spec.ts 641 B

1234567891011121314151617181920212223242526272829
  1. context("Basic", () => {
  2. beforeEach(() => {
  3. cy.visit("/")
  4. })
  5. it("basic nav", () => {
  6. cy.url().should("eq", "http://localhost:3333/")
  7. cy.contains("[Home Layout]").should("exist")
  8. cy.get("#input")
  9. .type("Vitesse{Enter}")
  10. .url()
  11. .should("eq", "http://localhost:3333/r/Vitesse")
  12. cy.contains("[Default Layout]").should("exist")
  13. cy.get(".btn").click().url().should("eq", "http://localhost:3333/")
  14. })
  15. it("markdown", () => {
  16. cy.get("[title=\"About\"]")
  17. .click()
  18. .url()
  19. .should("eq", "http://localhost:3333/about")
  20. cy.get("pre.language-js").should("exist")
  21. })
  22. })