This commit is contained in:
louiscklaw
2025-01-31 21:09:49 +08:00
parent 130daf5bae
commit 653422de08
1475 changed files with 330350 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
Cypress.on('uncaught:exception', (err, runnable) => {
// returning false here prevents Cypress from
// failing the test
return false
})
describe('example to-do app', () => {
beforeEach(() => {
cy.visit('http://localhost:8000/sign-in')
})
it('can login and logout', () => {
cy.get(':nth-child(2) > .form-control').type('admin@school.com')
cy.get(':nth-child(3) > .form-control').type('admin')
cy.get('.btn').click()
cy.wait(1000)
cy.get('.d-sm-inline').click()
})
})

View File

@@ -0,0 +1,24 @@
Cypress.on('uncaught:exception', (err, runnable) => {
// returning false here prevents Cypress from
// failing the test
return false
})
describe('example to-do app', () => {
beforeEach(() => {
cy.visit('http://localhost:8000/sign-in')
})
it('can login and logout', () => {
cy.get(':nth-child(2) > .form-control').type('debug@school.com')
cy.get(':nth-child(3) > .form-control').type('debug')
cy.get('.btn').click()
cy.wait(1000)
cy.get('.d-sm-inline').click()
})
})

View File

@@ -0,0 +1,21 @@
Cypress.on('uncaught:exception', (err, runnable) => {
// returning false here prevents Cypress from
// failing the test
return false
})
describe('example to-do app', () => {
beforeEach(() => {
cy.visit('http://localhost:8000/sign-in')
})
it('can login and logout', () => {
cy.get('.btn').click()
cy.wait(1000)
cy.get('.d-sm-inline').click()
})
})

View File

@@ -0,0 +1,24 @@
Cypress.on('uncaught:exception', (err, runnable) => {
// returning false here prevents Cypress from
// failing the test
return false
})
describe('example to-do app', () => {
beforeEach(() => {
cy.visit('http://localhost:8000/sign-in')
})
it('can login and logout', () => {
cy.get(':nth-child(2) > .form-control').type('student1@school.com')
cy.get(':nth-child(3) > .form-control').type('student1')
cy.get('.btn').click()
cy.wait(1000)
cy.get('.d-sm-inline').click()
})
})

View File

@@ -0,0 +1,24 @@
Cypress.on('uncaught:exception', (err, runnable) => {
// returning false here prevents Cypress from
// failing the test
return false
})
describe('example to-do app', () => {
beforeEach(() => {
cy.visit('http://localhost:8000/sign-in')
})
it('can login and logout', () => {
cy.get(':nth-child(2) > .form-control').type('teacher1@school.com')
cy.get(':nth-child(3) > .form-control').type('teacher1')
cy.get('.btn').click()
cy.wait(1000)
cy.get('.d-sm-inline').click()
})
})