open-vault/ui/tests/pages/components/flash-message.js

13 lines
334 B
JavaScript
Raw Normal View History

2018-04-03 14:16:57 +00:00
import { collection } from 'ember-cli-page-object';
import { getter } from 'ember-cli-page-object/macros';
export default {
latestMessage: getter(function() {
const count = this.messages().count;
return this.messages(count - 1).text;
}),
messages: collection({
itemScope: '[data-test-flash-message-body]',
}),
};