open-vault/ui/tests/pages/settings/configure-secret-backends/pki/section.js
Matthew Irish d509588cd2
Ember update (#5386)
Ember update - update ember-cli, ember-data, and ember to 3.4 series
2018-09-25 11:28:26 -05:00

15 lines
520 B
JavaScript

import { create, visitable, collection } from 'ember-cli-page-object';
import { getter } from 'ember-cli-page-object/macros';
import ConfigPKI from 'vault/tests/pages/components/config-pki';
export default create({
visit: visitable('/vault/settings/secrets/configure/:backend/:section'),
form: ConfigPKI,
lastMessage: getter(function() {
const count = this.flashMessages.length;
return this.flashMessages.objectAt(count - 1).text;
}),
flashMessages: collection('[data-test-flash-message-body]'),
});