red-diamond-5625
03/14/2023, 3:37 PMcommands.ts file
Cypress.Commands.add('confirmReCAPTCHA', () => {
// Wait until the iframe (Google reCAPTCHA) is totally loaded
return cy.get('iframe')
.first()
.its('0.contentDocument.body')
.should('not.be.undefined')
.and('not.be.empty')
.then(cy.wrap)
.find('#recaptcha-anchor')
.should('be.visible')
});
I get the following error "Argument of type '"confirmReCAPTCHA"' is not assignable to parameter of type 'keyof Chainable'.ts(2345)" , whats wrong am I doing here ? This was working fine with JavaScript , issue seems to be with TypeScript now that we switched. I cannot call the command in my cy.ts specenough-truck-68085
03/14/2023, 3:54 PMbland-oil-21931
03/14/2023, 5:00 PMred-diamond-5625
03/15/2023, 7:17 AM