Skip to content
This repository was archived by the owner on May 20, 2024. It is now read-only.

Commit 3f7def2

Browse files
committed
fix tests maybe?
1 parent 53d586f commit 3f7def2

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
File renamed without changes.

cypress/support/commands.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ Cypress.Commands.add('createDefaultTodos', function () {
5252
// 'spinning blue state' to the 'finished state'
5353
cmd.set({ $el: $listItems }).snapshot().end()
5454
})
55+
56+
// return a query for the todo items so that we can
57+
// alias the result of this command in our tests
58+
return cy.get('.todo-list li', { log: false })
5559
})
5660

5761
Cypress.Commands.add('createTodo', function (todo) {

0 commit comments

Comments
 (0)