Skip to content

Commit 37b3d4c

Browse files
committed
Work around change in LG "modal" no longer removing dom elements when closed
1 parent aa9fb26 commit 37b3d4c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/connection-form/src/components/connection-string-input.spec.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,11 @@ describe('ConnectionStringInput Component', function () {
236236
);
237237

238238
// Wait for the modal to close.
239-
await waitFor(() => expect(screen.queryByText('Confirm')).to.not.exist);
239+
await waitFor(
240+
() =>
241+
expect(screen.getByText('Confirm').closest('dialog')).to.not.be
242+
.displayed
243+
);
240244
});
241245

242246
it('should call setEnableEditingConnectionString', function () {

0 commit comments

Comments
 (0)