a105664141
* re-add performancestandycode for health api call * update debounce timeout for namespace input on the auth page * re-fetch cluster model on successful init * 500ms for the debounce * swap auth methods after successful api call so that the auth box doesn't jump around * move list capability fetch to namespace component and don't use computed queryRecord to fetch it * convert ed models to JSON so that they're unaffected by store unloading * serialize with the id for the auth method models * speed tests back up with different polling while loop * login flash isn't in the same run loop so no longer needs withFlash
16 lines
431 B
JavaScript
16 lines
431 B
JavaScript
import { create, visitable, fillable, clickable } from 'ember-cli-page-object';
|
|
|
|
export default create({
|
|
visit: visitable('/vault/auth'),
|
|
submit: clickable('[data-test-auth-submit]'),
|
|
tokenInput: fillable('[data-test-token]'),
|
|
login: async function(token) {
|
|
await this.visit({ with: 'token' });
|
|
if (token) {
|
|
return this.tokenInput(token).submit();
|
|
}
|
|
|
|
return this.tokenInput('root').submit();
|
|
},
|
|
});
|