Last active
November 9, 2015 21:55
-
-
Save giovanettid/ca7c62dc27e00d0d11ae to your computer and use it in GitHub Desktop.
mocha chai test with zombiejs page object
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() { | |
expect(todo.titleList()).to.equal('todos'); | |
}); | |
it('ajout premier dans la todo list',function() { | |
todo.typeNew('first todo').enterNew(); | |
expect(todo.first()).to.equal('first todo'); | |
}); | |
it('ajout deuxieme todo dans la todo list',function() { | |
todo.typeNew('second todo').enterNew(); | |
expect(todo.nbVisible()).to.equal(2); | |
expect(todo.nthText(2)).to.equal('second todo'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment