79259165

Date: 2024-12-06 19:30:53
Score: 1
Natty:
Report link

It would perhaps be better to use cy.location() as this has an origin property.

You can of course pass the variable directly into the cy.origin() command.

clickPaymentTypeRadioButtonAndSubmit(0);

cy.location('origin')
  .then(currentOrigin => {

    cy.origin(currentOrigin, () => {
      ...
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Hibor