From cf602c77d3089b2752210afb65d27b7625a9a4d2 Mon Sep 17 00:00:00 2001 From: Cameron Perera Date: Tue, 6 Jun 2023 18:08:49 -0500 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20player=20test=20not=20wai?= =?UTF-8?q?ting=20for=20player=20to=20initialize=20(#326)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: 🐛 player test not waiting for player to initialize * refactor: 💡 move back to channels assert out of waitUntil * refactor: 💡 use includesText instead of hasAnyText --- .../integration/components/session-recording/player-test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/admin/tests/integration/components/session-recording/player-test.js b/ui/admin/tests/integration/components/session-recording/player-test.js index 0a8415298..70da4cb76 100644 --- a/ui/admin/tests/integration/components/session-recording/player-test.js +++ b/ui/admin/tests/integration/components/session-recording/player-test.js @@ -1,6 +1,6 @@ import { module, test } from 'qunit'; import { setupRenderingTest } from 'admin/tests/helpers'; -import { render } from '@ember/test-helpers'; +import { render, waitUntil } from '@ember/test-helpers'; import { hbs } from 'ember-cli-htmlbars'; import { setupIntl } from 'ember-intl/test-support'; @@ -32,6 +32,6 @@ module('Integration | Component | session-recording/player', function (hooks) { `); assert.dom('.session-recording-player-header').hasText('Back to channels'); - assert.dom('.ap-control-bar .ap-timer').hasText('--:----:--'); + await waitUntil(() => assert.dom('.ap-player').includesText('yarn test')); }); });