Skip to content

Commit

Permalink
p1 spec
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov committed Nov 19, 2023
1 parent 7889694 commit b599a1b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions cypress/e2e/spec.cy.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/// <reference types="cypress" />

// use the plugin cypress-time-marks in this spec
import 'cypress-time-marks'

beforeEach(function () {
// start with zero todos
Expand All @@ -13,8 +12,6 @@ it('quickly adds an item', () => {
// start measuring time before using cy.type
// and confirm the item becomes visible
// before 500ms elapses
cy.get('input.new-todo').timeMark('addStart').type('an item{enter}')
cy.contains('li.todo', 'an item')
.should('be.visible')
.timeSince('addStart', 'adding an item', 500, true)
cy.get('input.new-todo').type('an item{enter}')
cy.contains('li.todo', 'an item').should('be.visible')
})

0 comments on commit b599a1b

Please sign in to comment.