Skip to content

Commit

Permalink
Merge branch 'release/1.10.x' into ui/backport-pr-14551-1.10.x
Browse files Browse the repository at this point in the history
  • Loading branch information
hellobontempo committed Mar 21, 2022
2 parents 7b65a42 + c618fb1 commit 7bdaa62
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ui/tests/acceptance/logout-auth-method-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { module, test } from 'qunit';
import { setupApplicationTest } from 'ember-qunit';
import { click, visit, fillIn, settled } from '@ember/test-helpers';
import { click, visit, fillIn } from '@ember/test-helpers';
import { setupMirage } from 'ember-cli-mirage/test-support';
import { fakeWindow, buildMessage } from '../helpers/oidc-window-stub';
import sinon from 'sinon';
Expand Down Expand Up @@ -29,10 +29,11 @@ module('Acceptance | logout auth method', function (hooks) {
sessionStorage.removeItem('selectedAuth');
await visit('/vault/auth');
await fillIn('[data-test-select="auth-method"]', 'oidc');
later(() => run.cancelTimers(), 50);
later(() => {
window.postMessage(buildMessage().data, window.origin);
run.cancelTimers();
}, 50);
await click('[data-test-auth-submit]');
window.postMessage(buildMessage().data, window.origin);
await settled();
await click('.nav-user-button button');
await click('#logout');
assert
Expand Down

0 comments on commit 7bdaa62

Please sign in to comment.