A platform for community discussion. Free, open, simple.
DEV: Restore and fix prosemirror specs (#39502)
Jarek Radosz2ec0732110ed
diff --git a/spec/system/composer/prosemirror_onebox_spec.rb b/spec/system/composer/prosemirror_onebox_spec.rbindex c364c78c83a..a3c31210308 100644--- a/spec/system/composer/prosemirror_onebox_spec.rb+++ b/spec/system/composer/prosemirror_onebox_spec.rb@@ -161,7 +161,7 @@ describe "Composer - ProseMirror - Oneboxing" doexpect(composer).to have_value(markdown[0..-2])end- xit "creates inline oneboxes for repeated links in different paste events" do+ it "creates inline oneboxes for repeated links in different paste events" docdp.allow_clipboardopen_composercomposer.type_content("Hey ")diff --git a/spec/system/composer/prosemirror_quotes_spec.rb b/spec/system/composer/prosemirror_quotes_spec.rbindex 7c0ebcef063..ab28dfeff3a 100644--- a/spec/system/composer/prosemirror_quotes_spec.rb+++ b/spec/system/composer/prosemirror_quotes_spec.rb@@ -15,14 +15,14 @@ describe "Composer - ProseMirror - Quotes" doexpect(composer).to have_value(markdown + "\n\nThis is a test")end- # TODO: Failing often https://github.com/discourse/discourse/actions/runs/16891573420/job/47852388890- xit "lifts the first paragraph out of the quote with Backspace" do+ it "lifts the first paragraph out of the quote with Backspace" doopen_composercomposer.type_content("[quote]Text")expect(rich).to have_css("aside.quote blockquote p", text: "Text")composer.send_keys(SystemHelpers::LINE_START_KEY)+ wait_for_timeout # wait for the caret movecomposer.send_keys(:backspace)expect(rich).to have_no_css("aside.quote")