guoqqqi commented on a change in pull request #1907:
URL: https://github.com/apache/apisix-dashboard/pull/1907#discussion_r650880529



##########
File path: web/cypress/integration/rawDataEditor/test-rawDataEditor.spec.js
##########
@@ -85,16 +85,14 @@ context('Test RawDataEditor', () => {
           .click();
       }
 
+      cy.get('.view-zones').should('exist');
       // edit monaco

Review comment:
       ```
     cy.get('.view-zones').should('exist').click({force: true});
   ```

##########
File path: web/cypress/integration/rawDataEditor/test-rawDataEditor.spec.js
##########
@@ -55,10 +55,10 @@ context('Test RawDataEditor', () => {
 
       const dataSetItem = dataset[item];
 
+      cy.get('.view-zones').should('exist');
       // edit monaco
       cy.window().then((window) => {
-        cy.waitUntil(() => window.monacoEditor)
-          .then(() => 
window.monacoEditor.setValue(JSON.stringify(dataSetItem)));
+        window.monacoEditor.setValue(JSON.stringify(dataSetItem));

Review comment:
       ```
     cy.get('.view-zones').should('exist').click({ force: true });
   ```
   With only the editor, we need to place the cursor inside the editor first




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to