Skip to content

Commit 1488ba7

Browse files
committed
Update data-testid
- I was dumb when naming
1 parent 3a22d39 commit 1488ba7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/code-studio/src/main/AppMainContainer.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ describe('imports layout correctly', () => {
286286
// Technically, the "Import Layout" button in the panels list is what the user clicks on to show the file picker
287287
// However, the testing library uses the `.upload` command on the `input` element directly, which we don't display
288288
// So just fetch it by testid and use the `.upload` command: https://testing-library.com/docs/user-event/utility/#upload
289-
const importInput = screen.getByTestId('btn-import-layout');
289+
const importInput = screen.getByTestId('input-import-layout');
290290
await userEvent.upload(importInput, file);
291291
});
292292

packages/code-studio/src/main/AppMainContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1022,7 +1022,7 @@ export class AppMainContainer extends Component<
10221022
accept=".json"
10231023
style={{ display: 'none' }}
10241024
onChange={this.handleImportLayoutFiles}
1025-
data-testid="btn-import-layout"
1025+
data-testid="input-import-layout"
10261026
/>
10271027
<DebouncedModal
10281028
isOpen={isDisconnected && !isAuthFailed}

0 commit comments

Comments
 (0)