This is a watchdog + multi-root manual test where initial roots are given as strings and editables are created after the editor is initialized.
Important: Be sure to run manual test with the
--debug false flag. Otherwise errors won't be rethrown by the
CKEditorError.rethrowUnexpectedError() method.
Whenever you type 1 in the editor, the multi-root editor should
crash and watchdog should react to it.
Click Simulate a random error. Editor should not be restarted.
Refresh page and quickly type 1 in the editor 4 times. After
the last error the editor should be crashed permanently and it should not
restart.
Refresh page and slowly (slower than 1 per 5 seconds) type 1 in
the editor 4 times. After the last error the editor should be restarted and
it should still work.
Try adding and removing roots to the editor and see if the editor is properly restarted after it crashes. Roots state should be the same as before the crash.
Try loading roots (two roots can be loaded) and see if the editor is properly restarted after it crashes. Loaded roots should be visible after the editor restart.
Finally, try loading, adding and removing roots together and see if the editor is properly restarted after it crashes.