Skip to content

Commit

Permalink
Shift data-cy to div surrounding Editor
Browse files Browse the repository at this point in the history
- This is because Monaco Editor may not be able to take in custom
  attributes.
  • Loading branch information
shapeseas committed Sep 24, 2024
1 parent 40f4200 commit 8541bd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/editor/components/CodeEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ export default function CodeEditor() {
<div>
<div
style={{ height: '95vh', overflow: 'auto', backgroundColor: '#F0F2F6' }}
data-cy="code-editor"
>
<Editor
data-cy="code-editor"
value={code}
language="yaml"
options={{
Expand Down

0 comments on commit 8541bd2

Please sign in to comment.