Skip to content

Commit

Permalink
fix tests :/
Browse files Browse the repository at this point in the history
  • Loading branch information
romgere committed Oct 20, 2023
1 parent 2df276f commit 38956d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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]');
await waitFor('[data-test-handle-position]', { timeout: 1000 });

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 @@ -28,7 +28,7 @@ module('Integration | Component | settings-form/select-type', function (hooks) {
.hasAttribute('data-test-checked', '', 'Correct type is checked');

await click(`calcite-segmented-control-item[data-test-type="${ModelType.TextWithSupport}"]`);
await waitUntil(() => model.type === ModelType.TextWithSupport);
await waitUntil(() => model.type === ModelType.TextWithSupport, { timeout: 1000 });
assert.strictEqual(model.type, ModelType.TextWithSupport, 'It change model type');
});

Expand Down

0 comments on commit 38956d6

Please sign in to comment.