From c88df178c302a4ab686938a9fcd44e3d58623084 Mon Sep 17 00:00:00 2001
From: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
Date: Thu, 23 Jun 2022 11:19:27 -0700
Subject: [PATCH] add waitUntil (#16072)
---
.../integration/components/token-expire-warning-test.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/ui/tests/integration/components/token-expire-warning-test.js b/ui/tests/integration/components/token-expire-warning-test.js
index 637f9f457..51a898f21 100644
--- a/ui/tests/integration/components/token-expire-warning-test.js
+++ b/ui/tests/integration/components/token-expire-warning-test.js
@@ -1,6 +1,6 @@
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
-import { render } from '@ember/test-helpers';
+import { find, render, waitUntil } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';
import { addMinutes } from 'date-fns';
@@ -12,7 +12,7 @@ module('Integration | Component | token-expire-warning', function (hooks) {
this.set('expirationDate', expirationDate);
await render(hbs`
Do not worry, your token has not expired.
`); - + await waitUntil(() => find('#modal-overlays')); assert.dom().doesNotIncludeText('Your auth token expired on'); assert.dom().includesText('Do not worry'); });