chore: upgrade cypress

This commit is contained in:
Anthony Fu committed 2022-06-30 13:25:36 +08:00
1 parent 5fcfbf6188
commit c4bf1b8bb5
5 files changed
+30 -28

No files matched your search

+36
View File
@@ -0,0 +1,36 @@
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')
cy.get('[btn]')
.click()
.url()
.should('eq', 'http://localhost:3333/')
})
it('markdown', () => {
cy.get('[title="About"]')
.click()
.url()
.should('eq', 'http://localhost:3333/about')
cy.get('pre.language-js')
.should('exist')
})
})