From 563b6e97a651b0290162dc0fdacfd09d82a2c0ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Mestres?= Date: Thu, 19 Oct 2023 17:10:20 +0200 Subject: [PATCH] add wait on some tests :( --- tests/integration/components/lang-switcher-test.ts | 1 + tests/integration/components/settings-form/text-test.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/tests/integration/components/lang-switcher-test.ts b/tests/integration/components/lang-switcher-test.ts index 2145ef9..32035c3 100644 --- a/tests/integration/components/lang-switcher-test.ts +++ b/tests/integration/components/lang-switcher-test.ts @@ -38,6 +38,7 @@ module('Integration | Component | lang-switcher', function (hooks) { this.owner.register('component:link-to', MyLinkTo); await render(hbs``); + await wait(); assert .dom('calcite-segmented-control') diff --git a/tests/integration/components/settings-form/text-test.ts b/tests/integration/components/settings-form/text-test.ts index 16e6058..a7440b9 100644 --- a/tests/integration/components/settings-form/text-test.ts +++ b/tests/integration/components/settings-form/text-test.ts @@ -9,6 +9,7 @@ const { } = config; import TextMakerSettings from 'text2stl/models/text-maker-settings'; import { ModelType } from 'text2stl/services/text-maker'; +import wait from 'text2stl/tests/helpers/wait'; import fillCalciteInput from 'text2stl/tests/helpers/fill-calcite-input'; @@ -99,6 +100,7 @@ module('Integration | Component | settings-form/text', function (hooks) { await click( '[data-test-settings-text-alignment] calcite-radio-button[data-test-value="right"]', ); + await wait(250); assert.strictEqual(model.alignment, 'right', 'model.alignment was updated'); assert