Skip to content

Commit

Permalink
try to fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
romgere committed Mar 6, 2024
1 parent 01ebe78 commit d91510b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions tests/integration/components/lang-switcher-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ module('Integration | Component | lang-switcher', function (hooks) {
this.owner.register('component:link-to', MyLinkTo);

await render(hbs`<LangSwitcher class="my-custom-class" />`);
await waitFor('calcite-segmented-control-item[data-test-lang="en-us"][checked]');

assert
.dom('calcite-segmented-control')
.exists('it renders a calcite-segmented-control')
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/components/settings-form/handle-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module('Integration | Component | advanced-settings-form/handle', function (hook
.doesNotExist('it does not render handle settings when handle-type is "none"');

await click('[data-test-handle-type-item] [data-test-value="hole"]');
await waitFor('[data-test-handle-position]', { timeout: 1000 });
await waitFor('[data-test-handle-position]', { timeout: 5000 });

assert.dom('[data-test-handle-position]').exists('it show handle-position input');
assert.dom('[data-test-settings-handle-size]').exists('it show handle-size input');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ module('Integration | Component | settings-form/select-type', function (hooks) {
await click(
`calcite-segmented-control-item[data-test-type="${ModelType.VerticalTextWithSupport}"]`,
);
await waitUntil(() => model.text === 'some multiline text', { timeout: 1000 });
await waitUntil(() => model.text === 'some multiline text', { timeout: 2000 });
assert.strictEqual(model.text, 'some multiline text', 'text was updated');
});
});

0 comments on commit d91510b

Please sign in to comment.