Skip to content

Commit 6ecef5c

Browse files
committed
[#1867] update react-testing-library to fix tests after running npm audit fix
1 parent 3a363bb commit 6ecef5c

File tree

4 files changed

+3831
-3200
lines changed

4 files changed

+3831
-3200
lines changed

client/modules/IDE/components/Toolbar.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ class Toolbar extends React.Component {
135135
onClick={() => {
136136
if (canEditProjectName) {
137137
this.props.showEditProjectName();
138-
setTimeout(() => this.projectNameInput.focus(), 0);
138+
setTimeout(() => this.projectNameInput.focus(), 100);
139139
}
140140
}}
141141
disabled={!canEditProjectName}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ describe('<ToolbarComponent />', () => {
5353
await waitFor(() => expect(props.showEditProjectName).toHaveBeenCalled());
5454
});
5555

56-
it('non-owner can\t switch to sketch editing mode', async () => {
56+
it("non-owner can't switch to sketch editing mode", async () => {
5757
const props = renderComponent({ currentUser: 'not-me' });
5858
const sketchName = screen.getByLabelText('Edit sketch name');
5959

0 commit comments

Comments
 (0)