fix: 🐛 player test not waiting for player to initialize (#326)

* fix: 🐛 player test not waiting for player to initialize

* refactor: 💡 move back to channels assert out of waitUntil

* refactor: 💡 use includesText instead of hasAnyText
This commit is contained in:
Cameron Perera authored and GitHub committed 2023-06-06 18:08:49 -05:00
1 parent 4071024853
commit cf602c77d3
1 file changed
+2 -2
@@ -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'));
});
});