Skip to content

A platform for community discussion. Free, open, simple.

DEV: fix rich editor check flaky (#38100)

Renato Atilio691622181af8
diff --git a/plugins/checklist/spec/system/rich_editor_extension_spec.rb b/plugins/checklist/spec/system/rich_editor_extension_spec.rb
index 2b5f4171e24..0b79b59ea25 100644
--- a/plugins/checklist/spec/system/rich_editor_extension_spec.rb
+++ b/plugins/checklist/spec/system/rich_editor_extension_spec.rb
@@ -99,6 +99,7 @@ describe "Composer - ProseMirror editor - Checklist extension", type: :system do
expect(checklist).to have_items(count: 2)
rich.send_keys(:home)
+ wait_for_timeout
rich.send_keys(:backspace)
expect(checklist).to have_checkboxes(count: 1)
@@ -132,6 +133,7 @@ describe "Composer - ProseMirror editor - Checklist extension", type: :system do
expect(checklist).to have_items(count: 1)
rich.send_keys(:home)
+ wait_for_timeout
rich.send_keys(:backspace)
expect(checklist).to have_no_checkboxes