Skip to content

Commit

Permalink
afterEach test will navigate to another page and run dummy commands
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov committed Jan 30, 2017
1 parent 6104e76 commit 6e97354
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion cypress/integration/failing-spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
describe('cypress failed log', () => {
const url = 'https://glebbahmutov.com'

beforeEach(() => {
cy.visit('https://glebbahmutov.com')
cy.visit(url)
})

afterEach(() => {
// more dummy commands on purpose. Can we get
// the right screenshot when the test actuall failed?
cy.visit(url)
.wait(100)
.wait(100)
.wait(100)
.wait(100)
.wait(100)
.wait(100)
.wait(100)
.wait(100)
})

// this test fails on purpose
Expand Down

0 comments on commit 6e97354

Please sign in to comment.