google recaptcha cypress is a nightmare, but here’s my hack:
Use `cy.window()` to override the recaptcha function:
```
cy.window().then((win) => {
win.grecaptcha = { execute: () => Promise.resolve('fake-token') };
});
```
Works like magic.
Use `cy.window()` to override the recaptcha function:
```
cy.window().then((win) => {
win.grecaptcha = { execute: () => Promise.resolve('fake-token') };
});
```
Works like magic.
