I have in the code this line:
window.parent.location.href = someCalculatedVal
In the test I want to verify that window.parent.location.href
has the correct value
This line expect(window.parent.location.href).toEqual(DOMAIN + "/failureUrl");
is not working:
Error: expect(received).toEqual(expected) // deep equality
Expected: "http://www.example.com/failureUrl"
Received: "http://localhost/"
I'ts look like it takes the running window and not the real window,