qian0817 commented on pull request #1679:
URL: https://github.com/apache/apisix-dashboard/pull/1679#issuecomment-809977325


   @guoqqqi Hi,How to simulate clicking on the prompt part of the autocomplete 
component.I tried to use the following code but not work. 
   ```ts
     it('sample', function () {
       cy.visit('/');
       cy.contains(menuLocaleUS['menu.routes']).click();
       const currentToken = localStorage.getItem('token');
       cy.contains(routeLocaleUS['page.route.onlineDebug']).click();
       cy.get(domSelector.debugDraw).should('be.visible');
       cy.get(domSelector.headerTab).should('be.visible').click();
       cy.get(domSelector.headerDataKey0).type('auth').click();
       cy.contains(domSelector.headerAuthorizationKey).click()
       cy.get(domSelector.headerDataValue0).type(currentToken);
     });
   ```
   ![Online debug -- sample 
(failed)](https://user-images.githubusercontent.com/45898769/112948836-1bde1700-916b-11eb-831b-d0feb30a02c2.png)
   


-- 
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