open-vault/ui/tests/pages/components/flash-message.js
2018-04-03 09:16:57 -05:00

13 lines
334 B
JavaScript

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]',
}),
};