Skip to content

Commit

Permalink
add wait on some tests :(
Browse files Browse the repository at this point in the history
  • Loading branch information
romgere committed Oct 19, 2023
1 parent f45a763 commit 0650c64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/integration/components/lang-switcher-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ module('Integration | Component | lang-switcher', function (hooks) {
this.owner.register('component:link-to', MyLinkTo);

await render(hbs`<LangSwitcher class="my-custom-class" />`);
await wait();

assert
.dom('calcite-segmented-control')
Expand Down
2 changes: 2 additions & 0 deletions tests/integration/components/settings-form/text-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -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();
assert.strictEqual(model.alignment, 'right', 'model.alignment was updated');

assert
Expand Down

0 comments on commit 0650c64

Please sign in to comment.