https://github.com/san650/ember-ombu
Really simple page objects for your Ember's acceptance tests
https://github.com/san650/ember-ombu
addon ember ember-cli page-object
Last synced: about 1 month ago
JSON representation
Really simple page objects for your Ember's acceptance tests
- Host: GitHub
- URL: https://github.com/san650/ember-ombu
- Owner: san650
- License: mit
- Created: 2016-04-28T02:48:02.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-12-14T00:53:30.000Z (over 8 years ago)
- Last Synced: 2025-10-21T01:57:31.561Z (8 months ago)
- Topics: addon, ember, ember-cli, page-object
- Language: JavaScript
- Size: 156 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# ember-ombu
[](https://travis-ci.org/san650/ember-ombu)

Really simple page objects for your acceptance tests
## Installation
```js
ember install ember-ombu
```
## Synopsis
```js
import { test } = 'qunit';
import Ombu from 'ember-ombu';
import moduleForAcceptance from '../../tests/helpers/module-for-acceptance';
const page = Ombu.create({
visit: '/login',
form: {
email: '[data-test-email]',
password: '[data-test-password]',
errorMessage: '[data-test-error-message]',
submit: 'button[type=submit]',
}
});
moduleForAcceptance('Acceptance | login');
test('show error message on invalid input', async function() {
visit(page); // => visit('/login');
const {email, password, errorMessage, submit} = page.form;
await fillIn(email, 'john@example.com'); // => fillIn('[data-test-email]', 'john@example.com')
await fillIn(password, 'secret'); // => fillIn('[data-test-email]', 'john@example.com')
await click(submit); // => click('button[type=submit]');
assert.equal(find(errorMessage).text().trim(), // => assert.equal(find('[data-test-error-message]').text().trim(),
'Invalid email and password combination'); // 'Invalid email and password combination');
});
```
See [Ombu](https://github.com/san650/ombu) for more information.
## Project's health
[](https://emberobserver.com/addons/ember-ombu)
[](https://travis-ci.org/san650/ember-ombu)
[](https://codeclimate.com/github/san650/ember-ombu/maintainability)
[](https://david-dm.org/san650/ember-ombu)
[](https://david-dm.org/san650/ember-ombu?type=dev)
[](https://coveralls.io/github/san650/ember-ombu?branch=master)
## License
Ombu is licensed under the MIT license.
See [LICENSE.md](./LICENSE.md) for the full license text.