In the tests directory is a file called todo.spec.js in which you'll find some scenario's to be implemented. Use the todo.page.js to create a page object to be used in your tests. The exercises can be found in the todo.spec.js file marked as #1 #2, etc
NOTE: for each step, remove the .skip
from the scenario and run npm test
to check if the test works as expected
NOTE: you can add .only
to a scenario to run only that specific scenario
NOTE: for more information about the page object pattern check here
- Complete the
open
method, found in the page object example test/pages/todo.page.js
- Implement the
create todo
scenario, found in the test file test/specs/todo.spec.js
- Implement the
edit todo
scenario, found in the test file test/specs/todo.spec.js
- Implement the
delete todo
scenario, found in the test file test/specs/todo.spec.js
- Implement the
complete one todo
scenario, found in the test file test/specs/todo.spec.js
- Implement the
show active/completed todos
scenario, found in the test file test/specs/todo.spec.js
- Implement the
complete all todos
scenario, found in the test file test/specs/todo.spec.js
- Implement the
delete all completed todos
scenario, found in the test file test/specs/todo.spec.js
- Implement the
add custom command to the Browser object
scenario, found in the test file test/specs/todo.spec.js
- Implement the
add custom command to the Element object
scenario, found in the test file test/specs/todo.spec.js