membphis commented on a change in pull request #1261:
URL: https://github.com/apache/apisix-dashboard/pull/1261#discussion_r554900944
##########
File path: web/cypress/integration/plugin/schema-smocktest.spec.js
##########
@@ -47,35 +50,53 @@ context('smoke test for plugin schema', () => {
.within(() => {
cy.contains('Enable').click({
force: true,
+ timeout
});
});
// NOTE: wait for the Drawer to appear on the DOM
- cy.wait(800);
- const switchSelector = '#disable';
- cy.get(switchSelector).click();
+ const drawerSelector = '.ant-drawer-content'
Review comment:
why do we need to store the value in a variable first?
how about this style? `cy.get('.ant-drawer-content').within`
----------------------------------------------------------------
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]