vitesse/cypress/e2e/basic.spec.ts

37 lines
681 B
TypeScript
Raw Normal View History

2021-11-02 09:45:48 +08:00
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/hi/Vitesse')
cy.contains('[Default Layout]')
.should('exist')
2022-02-17 21:06:42 +08:00
cy.get('[btn]')
2021-11-02 09:45:48 +08:00
.click()
.url()
.should('eq', 'http://localhost:3333/')
})
it('markdown', () => {
cy.get('[title="About"]')
.click()
.url()
.should('eq', 'http://localhost:3333/about')
2022-07-24 19:45:42 +08:00
cy.get('.shiki')
2021-11-02 09:45:48 +08:00
.should('exist')
})
})