diff --git a/ui/tests/acceptance/oidc-config/clients-keys-test.js b/ui/tests/acceptance/oidc-config/clients-keys-test.js index c892c129e8..94aed0cd40 100644 --- a/ui/tests/acceptance/oidc-config/clients-keys-test.js +++ b/ui/tests/acceptance/oidc-config/clients-keys-test.js @@ -4,7 +4,7 @@ */ import { module, test } from 'qunit'; -import { visit, click, fillIn, findAll, currentRouteName } from '@ember/test-helpers'; +import { visit, click, fillIn, findAll, currentRouteName, waitFor } from '@ember/test-helpers'; import { setupApplicationTest } from 'ember-qunit'; import { setupMirage } from 'ember-cli-mirage/test-support'; import oidcConfigHandlers from 'vault/mirage/handlers/oidc-config'; @@ -89,6 +89,7 @@ module('Acceptance | oidc-config clients and keys', function (hooks) { 'key edit form navigates back to details on cancel' ); await click(SELECTORS.keyClientsTab); + waitFor('[data-test-oidc-client-linked-block="client-with-default-key"]'); assert .dom('[data-test-oidc-client-linked-block="client-with-default-key"]') .exists('lists correct app with default'); diff --git a/ui/tests/acceptance/policies/index-test.js b/ui/tests/acceptance/policies/index-test.js index 9e2dfef83b..a194736be5 100644 --- a/ui/tests/acceptance/policies/index-test.js +++ b/ui/tests/acceptance/policies/index-test.js @@ -20,6 +20,7 @@ import { v4 as uuidv4 } from 'uuid'; import authPage from 'vault/tests/pages/auth'; import { runCmd } from 'vault/tests/helpers/commands'; import codemirror from 'vault/tests/helpers/codemirror'; +import { GENERAL } from 'vault/tests/helpers/general-selectors'; const SELECT = { policyByName: (name) => `[data-test-policy-link="${name}"]`, @@ -33,6 +34,7 @@ const SELECT = { policyTitle: '[data-test-policy-name]', listBreadcrumb: '[data-test-policy-list-link] a', }; + module('Acceptance | policies/acl', function (hooks) { setupApplicationTest(hooks); @@ -120,8 +122,7 @@ module('Acceptance | policies/acl', function (hooks) { 'navigates to policy show on successful save' ); assert.dom(SELECT.policyTitle).hasText(policyLower, 'displays the policy name on the show page'); - // will fail if you have a license about to expire. - assert.dom('[data-test-flash-message].is-info').doesNotExist('no flash message is displayed on save'); + assert.dom(GENERAL.latestFlashContent).hasText(`ACL policy "${policyLower}" was successfully created.`); await click(SELECT.listBreadcrumb); assert.strictEqual(currentURL(), `/vault/policies/acl`, 'navigates to policy list from breadcrumb');