Unverified Commit d060a456 authored by Jordan Reimer's avatar Jordan Reimer Committed by GitHub
Browse files

updates to logout auth method test to address failures in 1.8.x and 1.9.x versions (#14614)

parent 111c1d86
Showing with 5 additions and 4 deletions
+5 -4
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';
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment