open-vault/ui/tests/pages/components/wizard/features-selection.js
Noelle Daley 0aa0e0fe1d
UI/gate wizard (#6094)
* check for capabilities when finding matching paths

* disable wizard items that user does not have access to

* make hasPermissions accept an array of capabilities

* refactor features-selection

* fix tests

* implement feedback
2019-01-28 14:49:25 -08:00

10 lines
361 B
JavaScript

import { collection, isPresent, property, clickable } from 'ember-cli-page-object';
export default {
wizardItems: collection('[data-test-select-input]', {
hasDisabledTooltip: isPresent('[data-test-tooltip]'),
}),
hasDisabledStartButton: property('disabled', '[data-test-start-button]'),
selectSecrets: clickable('[data-test-checkbox=Secrets]'),
};