I'm trying to automate the application to check the status for 1000 employees and Below if the code. First it tries to open and next when it tries to hit another time the pop-up comes so, the test fails. But I have to open in 1000 tabs to check the status. Is there any way to do it. For example:
it('check status functionaltiy', function () {
cy.visit('https://egov.uscis.gov/casestatus/landing.do')
var genArr = Array.from({length:1000},(v,k)=>k+1)
cy.wrap(genArr).each((index) => {
cy.get('input[type="text"]')
.type(`IOE1234567${index}`)
cy.log(`IOE1234567${index}`,'ppppppppp')
cy.get('input[type="submit"]').click();
})
})