update,
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
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('.navbar-nav > :nth-child(6) > .nav-link').click({force: true})
|
||||
|
||||
cy.get('.d-sm-inline').click()
|
||||
})
|
||||
|
||||
})
|
@@ -0,0 +1,26 @@
|
||||
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('.navbar-nav > :nth-child(7) > .nav-link').click({force: true})
|
||||
|
||||
cy.get('.d-sm-inline').click()
|
||||
})
|
||||
|
||||
})
|
@@ -0,0 +1,26 @@
|
||||
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('.navbar-nav > :nth-child(3) > .nav-link').click({force: true})
|
||||
|
||||
cy.get('.d-sm-inline').click()
|
||||
})
|
||||
|
||||
})
|
@@ -0,0 +1,25 @@
|
||||
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(':nth-child(5) > .nav-link').click()
|
||||
|
||||
cy.get('.d-sm-inline').click()
|
||||
})
|
||||
|
||||
})
|
@@ -0,0 +1,26 @@
|
||||
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('.navbar-nav > :nth-child(4) > .nav-link').click({force: true})
|
||||
|
||||
cy.get('.d-sm-inline').click()
|
||||
})
|
||||
|
||||
})
|
Reference in New Issue
Block a user