We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 743909e commit 60b6c44Copy full SHA for 60b6c44
1 file changed
src/components/common/Modal/__tests__/Modal.test.jsx
@@ -37,7 +37,7 @@ describe('ModalExample Component', () => {
37
</Provider>,
38
);
39
40
- fireEvent.click(screen.getByText('Close'));
+ fireEvent.click(screen.getByText('Nope, changed my mind'));
41
expect(closeModalMock).toHaveBeenCalledTimes(1);
42
});
43
@@ -110,7 +110,7 @@ describe('ModalExample Component', () => {
110
/>,
111
112
113
- fireEvent.click(screen.getByText(/yes, hide it all/i));
+ fireEvent.click(screen.getAllByText(/yes, hide it all/i)[0]);
114
expect(setInactiveModalMock).toHaveBeenCalled();
115
116
0 commit comments