Closed PhilippeBarre closed 4 years ago
This test was not as easy as I thought it would be: I wanted to get the whole json by default and modify the elements one by one.
But your element (.ace_content > .ace_text-layer) actually displays only the part of the json visible with the scroll and not the whole json.
So, in my test I simply replace the whole json and check that the rendering has been updated.
Issue : CodeEditor: Add Cypress test #85
All right, I'll look into it.
Hello @aamay001 I have pushed tests that check the status of code editor as well as the colour of the top border.
This test was not as easy as I thought it would be: I wanted to get the whole json by default and modify the elements one by one.
But your element (.ace_content > .ace_text-layer) actually displays only the part of the json visible with the scroll and not the whole json.
So, in my test I simply replace the whole json and check that the rendering has been updated.
Issue : CodeEditor: Add Cypress test #85