There are so many potential states that the ProseMirror editor can be in that I'm curious if it'd be useful to implement fuzz testing for it, where we just input random keystrokes into a (perhaps randomly constructed) document and ensure on a per-keystroke basis that e.g.:
no exceptions are thrown,
the document always validates against its schema,
the word undefined never appears in the document (which seems to be a thing that happens if something unexpected occurs),
and so on.
If one of these conditions is not met, we could log the prosemirror state somewhere so that the situation could be reproduced on a developer's machine, and perhaps even reused in a regression test.
There are so many potential states that the ProseMirror editor can be in that I'm curious if it'd be useful to implement fuzz testing for it, where we just input random keystrokes into a (perhaps randomly constructed) document and ensure on a per-keystroke basis that e.g.:
undefined
never appears in the document (which seems to be a thing that happens if something unexpected occurs),If one of these conditions is not met, we could log the prosemirror state somewhere so that the situation could be reproduced on a developer's machine, and perhaps even reused in a regression test.