View todoAppView-mochajs.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('AppView', function() { | |
var todos = requirejs('collections/todos'); | |
var AppView = requirejs('views/appView'); | |
var Common = requirejs('common'); | |
var $ = requirejs('jquery'); | |
var appView; | |
var spyFetch; |
View todoItemView-mochajs.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('TodoView', function() { | |
var Todo = requirejs('models/todo'); | |
var TodoView = requirejs('views/todoView'); | |
var Common = requirejs('common'); | |
var $ = requirejs('jquery'); | |
var todo, todoView; | |
beforeEach(function() { |
View todoCollection-mochajs.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('Todos', function() { | |
var Todo = requirejs('models/todo'); | |
var todos = requirejs('collections/todos'); | |
beforeEach(function() { | |
todos.reset(); | |
}); | |
it('filtering completed', function() { |
View todoModel-mochajs.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('Todo', function() { | |
var Todo = requirejs('models/todo'); | |
var todo; | |
beforeEach(function() { | |
todo = new Todo(); | |
}); |
View todo-steps-seleniumjs.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function() { | |
this.Before(function (callback) { | |
todo.before().then(function() { | |
callback(); | |
}); | |
}); | |
this.After(function (callback) { | |
todo.after().then(function() { |
View todo-steps-zombiejs.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function() { | |
this.Before(function (callback) { | |
todo.before(callback); | |
}); | |
this.Given(/(\d+) todos dans la liste/, function (nbTodos, callback) { | |
for(var i=1;i<=parseInt(nbTodos);i++) { | |
todo.typeNew("todo "+i).enterNew(); |
View todoAdd.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: todo add feature | |
Scenario: add todos in todo list | |
When je saisis le todo "first todo" | |
And je saisis le todo "second todo" | |
Then le todo "first todo" est placé en position 1 dans la liste | |
And le todo "second todo" est placé en position 2 dans la liste |
View todoAdd-seleniumjs.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('Todo add scenario', function() { | |
before(function() { | |
return todo.before(); | |
}); | |
it('titre de la page', function() { | |
return expect(todo.title()).to.eventually.equal('TodoListWithBB'); | |
}); |
View todoAdd-zombiejs.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('Todo add scenario', function() { | |
before(function(done) { | |
todo.before(done); | |
}); | |
it('titre de la page', function() { | |
expect(todo.title()).to.equal('TodoListWithBB'); | |
}); | |
it('titre de la todo list', function() { |
View todoAdd-casperjs.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('Todo add scenario', function() { | |
before(function () { | |
todo.before(); | |
}); | |
it('titre de la page', function() { | |
todo.test(function() { | |
expect("TodoListWithBB").to.matchTitle; | |
}); | |
}); |
NewerOlder