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 dd433b7 commit 97b95c8Copy full SHA for 97b95c8
client/modules/IDE/components/Toolbar.test.jsx
@@ -90,4 +90,14 @@ describe('<ToolbarComponent />', () => {
90
await waitFor(() => expect(props.setProjectName).not.toHaveBeenCalled());
91
await waitFor(() => expect(props.saveProject).not.toHaveBeenCalled());
92
});
93
+
94
+ it('sketch is stopped when stop button is clicked', async () => {
95
+ const props = renderComponent({ isPlaying: true });
96
97
+ const stopButton = screen.getByLabelText('Stop sketch');
98
99
+ fireEvent.click(stopButton);
100
101
+ await waitFor(() => expect(props.stopSketch).toHaveBeenCalled());
102
+ });
103
0 commit comments