ember-ombu
v1.0.1
Published
Model really simple page objects
Downloads
16
Maintainers
Readme
ember-ombu
Really simple page objects for your acceptance tests
Installation
ember install ember-ombu
Synopsis
import Ombu from 'ember-ombu';
var page = Ombu.create({
visit: '/login',
login: {
scope: 'form',
userName: ':text',
password: ':password',
submit: ':submit'
},
message: '.message'
});
test('can log-in', function(assert) {
visit(page); // => visit('/login');
fillIn(page.login.userName, 'santiago'); // => fillIn('form :text', 'santiago')
fillIn(page.login.password, 'secret'); // => fillIn('form :password', 'secret')
click(page.login.submit); // => click('form :submit')
andThen(function() {
assert.equal(find(page.message).text(), 'Log-in successful!');
// => find('.message').text()
});
});
See Ombu for more information.
Project's health
License
Ombu is licensed under the MIT license.
See LICENSE.md for the full license text.