Skip to content

Commit 5c3ea47

Browse files
committed
Add additional test for play button in Toolbar.unit.test.jsx
1 parent 93971d3 commit 5c3ea47

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

client/modules/IDE/components/Toolbar.unit.test.jsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,12 @@ describe('<ToolbarComponent />', () => {
9999

100100
await waitFor(() => expect(props.startSketch).toHaveBeenCalled());
101101
});
102+
103+
it('sketch content is synched when play button is clicked', async () => {
104+
const props = renderComponent();
105+
const playButton = screen.getByLabelText('Play only visual sketch');
106+
fireEvent.click(playButton);
107+
108+
await waitFor(() => expect(props.syncFileContent).toHaveBeenCalled());
109+
});
102110
});

0 commit comments

Comments
 (0)