OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
flaky: fix reverse order text typed
Christophe Bliardac4abfbe2bf7
diff --git a/spec/support/components/wysiwyg/wysiwyg_editor.rb b/spec/support/components/wysiwyg/wysiwyg_editor.rbindex 7f50d5e929c..03930bc781d 100644--- a/spec/support/components/wysiwyg/wysiwyg_editor.rb+++ b/spec/support/components/wysiwyg/wysiwyg_editor.rb@@ -48,11 +48,11 @@ module Componentsenddef expect_button(label)- expect(container).to have_selector('.ck-button', visible: :all, text: label)+ expect(container).to have_css('.ck-button', visible: :all, text: label)enddef expect_no_button(label)- expect(container).not_to have_selector('.ck-button', visible: :all, text: label)+ expect(container).not_to have_css('.ck-button', visible: :all, text: label)enddef expect_value(value)@@ -61,7 +61,7 @@ module Componentsdef expect_supports_no_macrosexpect(container)- .not_to have_selector('.ck-button', visible: :all, text: 'Macros')+ .not_to have_css('.ck-button', visible: :all, text: 'Macros')enddef within_enabled_preview@@ -93,7 +93,7 @@ module Componentsattachments.drag_and_drop_file(editable, image_fixture, :bottom)expect(page)- .to have_selector('img[src^="/api/v3/attachments/"]', count: images.length + 1, wait: 10)+ .to have_css('img[src^="/api/v3/attachments/"]', count: images.length + 1, wait: 10)wait_until_upload_progress_toaster_cleared@@ -148,16 +148,17 @@ module Componentscontainer.find('.ck-button', visible: :all, text: label).clickend- def type_slowly(*text)- editor_element.send_keys *text- sleep 0.5+ def type_slowly(*)+ editor_element.send_keys(*)+ sleep 0.2end- def click_and_type_slowly(*text)- sleep 0.5+ def click_and_type_slowly(*)+ sleep 0.2editor_element.click- type_slowly *text+ sleep 0.2+ type_slowly(*)enddef click_hover_toolbar_button(label)