How to use a while loop in cypress? The control of is NOT entering the loop when running this spec file? The way I am polling the task is correct?
问题 The way i am polling tasks for async POST call, is it correct??? Because program control doesn't enter 'while' loop in spec file. Please help! Previous query: How to return a value from Cypress custom command beforeEach(function () { cy.server() cy.route('POST', '/rest/hosts').as("hosts") }) it('Create Host', function () { let ts ='' let regex = /Ok|Error|Warning/mg // Some cypress commands to create a host. POST call is made when I create a host. I want to poll // task for this Asynchronous