899f0dc2cb
* do not swallow ControlGroupErrors when viewing or editing kvv2 secrets * test kv v2 control group workflow * do not manually clearModelCache when logging out since this already happens when leaving the logout route * remove pauseTest * update comments * wip - looking into why restricted user can see the control group protected secret after it has already been unwrapped once * strip version from query params so we can unwrap a secret after it is authorized * use attachCapabilities instead of lazyCapabilities to ensure models are cleaned up properly * remove comment * make ControlGroupError extend AdapterError * fix broken redirect_to test * one day i will remember to remove my debugger statements; today is not that day * no need to check for a ControlGroupError since it extends an AdapterError * see if using EmberError instead of AdapterError fixes the browserstack tests * Revert "see if using EmberError instead of AdapterError fixes the browserstack tests" This reverts commit 14ddd67cacbf1ccecb8cc2d1f59a2c273866da72.
19 lines
554 B
JavaScript
19 lines
554 B
JavaScript
import { create, visitable, fillable, clickable } from 'ember-cli-page-object';
|
|
|
|
export default create({
|
|
visit: visitable('/vault/auth'),
|
|
logout: visitable('/vault/logout'),
|
|
submit: clickable('[data-test-auth-submit]'),
|
|
tokenInput: fillable('[data-test-token]'),
|
|
login: async function(token) {
|
|
// make sure we're always logged out and logged back in
|
|
await this.logout();
|
|
await this.visit({ with: 'token' });
|
|
if (token) {
|
|
return this.tokenInput(token).submit();
|
|
}
|
|
|
|
return this.tokenInput('root').submit();
|
|
},
|
|
});
|