change to url assertion (#27448)

This commit is contained in:
claire bontempo
2024-06-11 11:51:43 -07:00
committed by GitHub
parent 1710f59688
commit 96686838b5

View File

@@ -4,7 +4,7 @@
*/
import { module, test } from 'qunit';
import { visit, click, fillIn, findAll, currentRouteName, waitFor } from '@ember/test-helpers';
import { visit, click, fillIn, findAll, currentRouteName, currentURL } 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,10 +89,11 @@ 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');
assert.strictEqual(
currentURL(),
'/vault/access/oidc/keys/default/clients',
'navigates to key applications list '
);
// create a new key
await click('[data-test-breadcrumb-link="oidc-keys"] a');