Fixes some flaky enterprise tests (#13483)
* fixes some flaky enterprise tests * more test fixes
This commit is contained in:
parent
82f333002a
commit
e85158e017
|
@ -1,4 +1,4 @@
|
|||
import { settled, currentURL, currentRouteName, visit } from '@ember/test-helpers';
|
||||
import { settled, currentURL, currentRouteName, visit, waitUntil } from '@ember/test-helpers';
|
||||
import { module, test, skip } from 'qunit';
|
||||
import { setupApplicationTest } from 'ember-qunit';
|
||||
import { create } from 'ember-cli-page-object';
|
||||
|
@ -130,9 +130,8 @@ module('Acceptance | Enterprise | control groups', function (hooks) {
|
|||
await settled();
|
||||
await visit('/vault/secrets/kv-v2-mount/show/foo');
|
||||
|
||||
assert.equal(
|
||||
currentRouteName(),
|
||||
'vault.cluster.access.control-group-accessor',
|
||||
assert.ok(
|
||||
await waitUntil(() => currentRouteName() === 'vault.cluster.access.control-group-accessor'),
|
||||
'redirects to access control group route'
|
||||
);
|
||||
});
|
||||
|
|
|
@ -130,6 +130,7 @@ module('Acceptance | Enterprise | replication', function (hooks) {
|
|||
await click('#no-filtering');
|
||||
|
||||
await click('[data-test-config-save]');
|
||||
await settled(); // eslint-disable-line
|
||||
|
||||
assert.equal(
|
||||
flash.latestMessage,
|
||||
|
@ -234,7 +235,7 @@ module('Acceptance | Enterprise | replication', function (hooks) {
|
|||
|
||||
await fillIn('[data-test-replication-cluster-mode-select]', 'primary');
|
||||
await click('[data-test-replication-enable]');
|
||||
|
||||
await settled(); // eslint-disable-line
|
||||
await pollCluster(this.owner);
|
||||
await visit('/vault/replication-dr-promote/details');
|
||||
|
||||
|
|
|
@ -86,7 +86,10 @@ module('Acceptance | ssh secret backend', function (hooks) {
|
|||
// default has generate CA checked so we just submit the form
|
||||
await click('[data-test-ssh-input="configure-submit"]');
|
||||
|
||||
assert.ok(findAll('[data-test-ssh-input="public-key"]').length, 'a public key is fetched');
|
||||
assert.ok(
|
||||
await waitUntil(() => findAll('[data-test-ssh-input="public-key"]').length),
|
||||
'a public key is fetched'
|
||||
);
|
||||
await click('[data-test-backend-view-link]');
|
||||
|
||||
assert.equal(currentURL(), `/vault/secrets/${sshPath}/list`, `redirects to ssh index`);
|
||||
|
|
Loading…
Reference in New Issue