Created
March 2, 2022 08:41
-
-
Save mrzmyr/d928a1028434b7abd60a1fe93e0ce200 to your computer and use it in GitHub Desktop.
Set innerHTML in Cypress
This file contains hidden or 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
Cypress.Commands.add('html', { prevSubject: true }, (subject, html) => { | |
subject[0].innerHTML = html | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment