open-vault/ui/tests/pages/settings/mount-secret-backend.js
Angel Garbarino d89ef3c369
Remove Skip from flaky test left over from Ember Upgrade (#11065)
* remove skip

* remove skip from create test

* some changes

* small changes to address local failures

* replace page object with dom click to help with flaky control group test

* small fix that seems to help control group failures

* some skipping to bring back my sanity

* focusing on the section-cert-test for pki

* another try at the secret cert test

* skipping to focus on secret-certs

* fingers crossed for pki role test

* hopefully some help with control group

* more on control groups

* trying for one less skip here

* create test remove skips

* remove skip

* remove comment

* back to skip this test

* shouldn't make sense but it does, changed the name to hit it first in acceptance test and that works

* redirect testing

* remove catch because that was not the issue, it never got triggered

* cleanup

* clean up

* remove comments and add catch
2021-03-16 12:23:48 -06:00

22 lines
996 B
JavaScript

import { create, visitable, fillable, clickable } from 'ember-cli-page-object';
import { settled } from '@ember/test-helpers';
import mountForm from 'vault/tests/pages/components/mount-backend-form';
export default create({
visit: visitable('/vault/settings/mount-secret-backend'),
...mountForm,
version: fillable('[data-test-input="options.version"]'),
enableMaxTtl: clickable('[data-test-toggle-input="Max Lease TTL"]'),
maxTTLVal: fillable('[data-test-ttl-value="Max Lease TTL"]'),
maxTTLUnit: fillable('[data-test-ttl-unit="Max Lease TTL"] [data-test-select="ttl-unit"]'),
enableDefaultTtl: clickable('[data-test-toggle-input="Default Lease TTL"]'),
defaultTTLVal: fillable('input[data-test-ttl-value="Default Lease TTL"]'),
defaultTTLUnit: fillable('[data-test-ttl-unit="Default Lease TTL"] [data-test-select="ttl-unit"]'),
enable: async function(type, path) {
await this.visit();
await settled();
await this.mount(type, path);
await settled();
},
});