Skip to content

Commit 5b0c8fc

Browse files
committed
Update Table.Interactions.stories.tsx
1 parent 4a985f9 commit 5b0c8fc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/table/src/Table.Interactions.stories.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,10 +230,10 @@ export const DynamicData = {
230230
const { getRowByIndex } = getTestUtils();
231231
const cell = getRowByIndex(0)?.getAllCells()[3];
232232

233-
expect(cell).toHaveTextContent(expect.stringContaining('with 🥬'));
233+
expect(cell).toHaveTextContent(/^.+ with 🥬$/);
234234

235-
userEvent.click(button);
235+
await userEvent.click(button);
236236

237-
expect(cell).not.toHaveTextContent(expect.stringContaining('with 🥬'));
237+
expect(cell).not.toHaveTextContent(/^.+ with 🥬$/);
238238
},
239239
};

0 commit comments

Comments
 (0)