Skip to content

Commit

Permalink
chore: try to fix this f******* test
Browse files Browse the repository at this point in the history
  • Loading branch information
romgere committed May 31, 2024
1 parent 3832366 commit 7733c22
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/integration/components/settings-form/handle-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ module('Integration | Component | advanced-settings-form/handle', function (hook
this.set('model', model);

await render(hbs`<SettingsForm::Handle @model={{this.model}} />`);
await waitCalciteReady();

assert.dom('[data-test-handle-type-item]').exists('it render handle type radio group');

Expand All @@ -30,7 +31,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 waitUntil(() => model.handleSettings.type === 'hole');
await waitUntil(() => model.handleSettings.type === 'hole', { timeout: 5000 });
await waitCalciteReady();
await waitFor('[data-test-handle-position]', { timeout: 5000 });
assert.dom('[data-test-handle-position]').exists('it show handle-position input');
Expand Down

0 comments on commit 7733c22

Please sign in to comment.