kaoto-ui icon indicating copy to clipboard operation
kaoto-ui copied to clipboard

Code editor isn't rendering in the test.

Open mmelko opened this issue 2 years ago • 2 comments

Please describe the task that needs to be done

It appears that current code editor isn't really rendered. This might be actually an issue with Monaco Jest or missing some dependencies or mocks.

This is current render of SourceCodeEditor component in the test:

body>
  <div>
    <textarea />
  </div>
</body>

mmelko avatar Nov 25 '22 15:11 mmelko

@lordrip is this still happening? How can I check?

Delawen avatar Jul 17 '23 10:07 Delawen

Yes, it's still happening. This is because the monaco editor is a bit complex to run it through the JSDom environment.

We're mocking the whole component here

In order to fix this, the idea is to split the buttons from the code editor itself, so we can at least check the interaction between Kaoto and the code editor.

lordrip avatar Jul 17 '23 13:07 lordrip