basic.spec.ts 688 B

123456789101112131415161718192021222324252627282930313233343536
  1. context('Basic', () => {
  2. beforeEach(() => {
  3. cy.visit('/')
  4. })
  5. it('basic nav', () => {
  6. cy.url()
  7. .should('eq', 'http://localhost:3333/')
  8. cy.contains('[Home Layout]')
  9. .should('exist')
  10. cy.get('#input')
  11. .type('Vitesse{Enter}')
  12. .url()
  13. .should('eq', 'http://localhost:3333/hi/Vitesse')
  14. cy.contains('[Default Layout]')
  15. .should('exist')
  16. cy.get('[btn]')
  17. .click()
  18. .url()
  19. .should('eq', 'http://localhost:3333/')
  20. })
  21. it('markdown', () => {
  22. cy.get('[data-test-id="about"]')
  23. .click()
  24. .url()
  25. .should('eq', 'http://localhost:3333/about')
  26. cy.get('.shiki')
  27. .should('exist')
  28. })
  29. })