I am working with a custom command in cypress that pauses the test and opens a window.prompt() that asks the user for some input and adds it to the mochawesome report with the addcontext command. However, I want to create my own custom dialog that has a textbox and two buttons - pass/fail (basically a combination of window.prompt() and window.confirm()). Is there some way I can create my own html element and display it in cypress?
question from:https://stackoverflow.com/questions/66066106/how-to-create-custom-dialog-in-cypress