refactor: 💡 remove usage of ember/runloop & ember-pollster (#2705)

* refactor: 💡 remove usage of ember/runloop & ember-pollster

---------

Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com>
This commit is contained in:
Lisbet AlvarezandZhihe Li authored and GitHub committed 2025-03-06 12:20:48 -08:00
1 parent e29a83ec25
commit 29bde998ed
23 files changed
+225 -197

No files matched your search

@@ -16,7 +16,6 @@ import { setupApplicationTest } from 'admin/tests/helpers';
import setupMirage from 'ember-cli-mirage/test-support/setup-mirage';
import { setupIndexedDb } from 'api/test-support/helpers/indexed-db';
import { Response } from 'miragejs';
import { runAllJobs } from 'ember-pollster/test-support';
import a11yAudit from 'ember-a11y-testing/test-support/audit';
import {
currentSession,
@@ -86,7 +85,7 @@ module('Acceptance | authentication', function (hooks) {
},
'withChildren',
);
// create an emtpy org with no auth methods
// create an empty org with no auth methods
this.server.create(
'scope',
{
@@ -391,9 +390,6 @@ module('Acceptance | authentication', function (hooks) {
);
await visit(authMethodOIDCAuthenticateURL);
await click('form [type="submit"]');
// explicitly poll multiple times to trigger mock OIDC auth
await runAllJobs();
await runAllJobs();
});
// TODO: test OIDC retry and cancel