From fae175eff740d8b6867188ab034fb10c2b7c3a33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Mestres?= Date: Fri, 31 May 2024 15:39:48 +0200 Subject: [PATCH] chore: try to fix this f******* test --- tests/integration/components/settings-form/text-test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/integration/components/settings-form/text-test.ts b/tests/integration/components/settings-form/text-test.ts index 8d16691..b94c55d 100644 --- a/tests/integration/components/settings-form/text-test.ts +++ b/tests/integration/components/settings-form/text-test.ts @@ -10,6 +10,7 @@ import TextMakerSettings from 'text2stl/models/text-maker-settings'; import { ModelType } from 'text2stl/services/text-maker'; import fillCalciteInput from 'text2stl/tests/helpers/fill-calcite-input'; import { setupIntl } from 'ember-intl/test-support'; +import waitCalciteReady from 'text2stl/tests/helpers/wait-calcite-ready'; module('Integration | Component | settings-form/text', function (hooks) { setupRenderingTest(hooks); @@ -87,6 +88,8 @@ module('Integration | Component | settings-form/text', function (hooks) { this.set('model', model); await render(hbs``); + await waitCalciteReady(); + assert.dom('[data-test-settings-text-alignment]').doesNotExist(); assert.dom('[data-test-settings-vspacing]').doesNotExist(); @@ -102,6 +105,7 @@ module('Integration | Component | settings-form/text', function (hooks) { '[data-test-settings-text-alignment] calcite-radio-button[data-test-value="right"]', ); + await waitCalciteReady(); await waitUntil(() => model.alignment === 'right', { timeout: 5000 }); assert.strictEqual(model.alignment, 'right', 'model.alignment was updated');