Currently running Angular/TipTap prosemirror. We have a customized schema that we want to write some e2e test for to keep stable. We need to be able to update the editor, press buttons, click things, etc.
I’ve tried Cypress, but had weird behavior when I tried to click in the editor. I’m currently using Playwright, but I get different behavior if I’m doing chromium vs Chrome. In Chrome, I can set the contents of the editor one time with page.locator('.ProseMirror').fill('foo bar')
, but if I do it a second time, it just clears it out. I can’t seem to get ...pressSequentially(...)
. If I test in the chromium browser, I seem to be able to do a fill
followed by pressSequentially
, but I don’t have confidence that testing in chromium is as useful as Google Chrome.
Has anyone had luck with running playwright tests in an app that leverages ProseMirror? We really need testing to stay on top of the features we want to implement.
Thanks in advance!