Created
July 15, 2019 14:33
-
-
Save Robdel12/a499045edf454e95355344bab895bae7 to your computer and use it in GitHub Desktop.
Interactor.js + Cypress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
beforeEach(function() { | |
// Tell Interactor where the applications DOM is | |
// since Cypress runs the test specs in an isolated iframe (away from the app DOM) | |
cy.window().then(remoteWindow => { | |
Object.defineProperty(Interactor.prototype, "$dom", { | |
get() { | |
return remoteWindow; | |
} | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment