open-nomad/ui/tests/pages/settings/tokens.js

28 lines
750 B
JavaScript
Raw Normal View History

2018-07-10 07:39:02 +00:00
import {
create,
collection,
clickable,
fillable,
text,
isVisible,
visitable,
} from 'ember-cli-page-object';
export default create({
visit: visitable('/settings/tokens'),
secret: fillable('[data-test-token-secret]'),
submit: clickable('[data-test-token-submit]'),
clear: clickable('[data-test-token-clear]'),
2018-07-10 07:39:02 +00:00
errorMessage: isVisible('[data-test-token-error]'),
successMessage: isVisible('[data-test-token-success]'),
managementMessage: isVisible('[data-test-token-management-message]'),
policies: collection('[data-test-token-policy]', {
name: text('[data-test-policy-name]'),
description: text('[data-test-policy-description]'),
rules: text('[data-test-policy-rules]', { normalize: false }),
}),
});