late-planet-4481
06/30/2022, 3:05 PMcy. commands are enqueued and run in sequence, so you don't need to use .then() unless you want to incorporate the previous command's yield with standard JavaScript.
So your test could be re-written as follows:
js
import 'cypress-iframe';
describe('Install', () => {
it('should install Ricoch agent ', function () {
cy.visit("10.2.4.56")
cy.get('frameset')
cy.frameLoaded('frame[title="Header Area"]')
cy.iframe('frame[title="Header Area"]')
.find('span')
.contains('Login')
.wait(10000)
.click({force: true})
.wait(10000);
})
})