Created
March 9, 2020 12:56
-
-
Save filiphric/afb65e4e5444c8c498146f47b5944ae9 to your computer and use it in GitHub Desktop.
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() { | |
window.logCalls = 1; | |
}); | |
Cypress.Commands.overwrite('log', (originalFn, message) => { | |
Cypress.log({ | |
displayName: `--- ${window.logCalls}. ${message} ---`, | |
name: `--- ${window.logCalls}. ${message} ---`, | |
message: '' | |
}); | |
window.logCalls++; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment