From a114bd06e7ca1404d74ddd391f1908c955f7ce64 Mon Sep 17 00:00:00 2001 From: Scott Newcomer Date: Tue, 29 Sep 2020 22:06:58 -0700 Subject: [PATCH] [Test]: flakey test with save --- tests/integration/components/user-profile-ics-test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/integration/components/user-profile-ics-test.js b/tests/integration/components/user-profile-ics-test.js index 4adbe249a2..f6ff9acdb9 100644 --- a/tests/integration/components/user-profile-ics-test.js +++ b/tests/integration/components/user-profile-ics-test.js @@ -1,6 +1,6 @@ import { module, test } from 'qunit'; import { setupRenderingTest } from 'ember-qunit'; -import { render, click } from '@ember/test-helpers'; +import { render, click, settled } from '@ember/test-helpers'; import hbs from 'htmlbars-inline-precompile'; import { triggerSuccess @@ -43,6 +43,7 @@ module('Integration | Component | user profile ics', function(hooks) { await render(hbs``); await click('.refresh-key'); + await settled(); const icsFeedKey = this.server.db.users.find(13).icsFeedKey; assert.notEqual(icsFeedKey, 'testkey', 'icsFeedKey is not the same');