mimik
Version:
Write end-to-end automation tests in natural language
86 lines (68 loc) • 1.96 kB
JavaScript
// Given a user navigates to the todomvc app
Given(/a user navigates to the todomvc app/, function(done) {
done();
});
// When the user creates a new todo item
When(/the user creates a new todo item/, function(done) {
done();
});
// Then the new todo item is added
Then(/the new todo item is added/, function(done) {
done();
});
// And the status bar shows "1 item left"
And(/the status bar shows "1 item left"/, function(done) {
done();
});
// And the "All" tab is selected by default
And(/the "All" tab is selected by default/, function(done) {
done();
});
// Given 1 new todo items
Given(/1 new todo items/, function(done) {
done();
});
// When the user checks the "toggle-all" icon
When(/the user checks the "toggle-all" icon/, function(done) {
done();
});
// Then all the checkboxes are checked
Then(/all the checkboxes are checked/, function(done) {
done();
});
// And the clear button shows "Clear completed (2)"
And(/the clear button shows "Clear completed (2)"/, function(done) {
done();
});
// When the user clears the completed list
When(/the user clears the completed list/, function(done) {
done();
});
// Then there are no remaining items
Then(/there are no remaining items/, function(done) {
done();
});
// And the "Clear completed" option disappears
And(/the "Clear completed" option disappears/, function(done) {
done();
});
// Given 2 new todo items
Given(/2 new todo items/, function(done) {
done();
});
// When the user unchecks the first todo item
When(/the user unchecks the first todo item/, function(done) {
done();
});
// Then the status bar shows "1 item left"
Then(/the status bar shows "1 item left"/, function(done) {
done();
});
// When the user deletes the remaining items
When(/the user deletes the remaining items/, function(done) {
done();
});
// Then the status bar disappears
Then(/the status bar disappears/, function(done) {
done();
});