Skip to content

Commit

Permalink
💚 Fix flaky test?
Browse files Browse the repository at this point in the history
  • Loading branch information
sergei-maertens committed Oct 27, 2023
1 parent 32a8ca0 commit 96d84b6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/formio/components/TextField.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ export const TextFieldsWithLocation = {
await waitFor(async () => {
expect(canvas.getByLabelText('Street')).toHaveDisplayValue('Keizersgracht');
});
expect(canvas.getByLabelText('City')).toHaveDisplayValue('Amsterdam');
await waitFor(async () => {
expect(canvas.getByLabelText('City')).toHaveDisplayValue('Amsterdam');
});
});
},
};
Expand Down Expand Up @@ -158,7 +160,9 @@ export const TextFieldsWithLocationInEditGrid = {
await waitFor(async () => {
expect(canvas.getByLabelText('Street')).toHaveDisplayValue('Keizersgracht');
});
expect(canvas.getByLabelText('City')).toHaveDisplayValue('Amsterdam');
await waitFor(async () => {
expect(canvas.getByLabelText('City')).toHaveDisplayValue('Amsterdam');
});
});
},
};

0 comments on commit 96d84b6

Please sign in to comment.