fast-artist-45202
05/01/2023, 5:47 PMCypress.Commands.add("popup", () => {
const popup = Cypress.$(state.popup.document);
return cy.wrap(popup.contents().find("body"));
});
and when I run the tests as described in the above tutorial, I'm getting the following:
Cannot read properties of undefined (reading 'document')
Has anyone had more success implementing coverage for PayPal checkout options? Is there a better method I could use?echoing-tent-95037
05/01/2023, 5:57 PMechoing-tent-95037
05/01/2023, 5:59 PMfast-artist-45202
05/01/2023, 5:59 PMhttps://cdn.discordapp.com/attachments/1102652510533070919/1102655650061897859/screen_shot_2023-05-01_at_1.png▾
fast-artist-45202
05/01/2023, 6:00 PMechoing-tent-95037
05/01/2023, 6:01 PMcy.get('a').invoke('removeAttr', 'target').click()fast-artist-45202
05/01/2023, 6:02 PMhttps://cdn.discordapp.com/attachments/1102652510533070919/1102656293329711265/image.png▾
echoing-tent-95037
05/01/2023, 6:02 PMcy.origin() https://github.com/cypress-io/cypress/issues/22186#issuecomment-1242240154fast-artist-45202
05/01/2023, 9:03 PMcy.origin(), but Soon™fast-artist-45202
05/01/2023, 9:04 PM