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
attempt to fix flickering spec
ulferts1608b2e860ee
diff --git a/modules/dashboards/spec/features/work_package_table_spec.rb b/modules/dashboards/spec/features/work_package_table_spec.rbindex 88b254bf8fa..69423bd6004 100644--- a/modules/dashboards/spec/features/work_package_table_spec.rb+++ b/modules/dashboards/spec/features/work_package_table_spec.rb@@ -30,7 +30,7 @@ require "spec_helper"require_relative "../support/pages/dashboard"-RSpec.describe "Arbitrary WorkPackage query table widget dashboard", :js, :selenium do+RSpec.describe "Arbitrary WorkPackage query table widget dashboard", :js dolet!(:type) { create(:type) }let!(:other_type) { create(:type) }let!(:priority) { create(:default_priority) }@@ -96,12 +96,21 @@ RSpec.describe "Arbitrary WorkPackage query table widget dashboard", :js, :selenit "can add the widget and see the work packages of the filtered for types" do# This one always exists by default.# Using it here as a safeguard to govern speed.+ dashboard_page.expect_and_dismiss_toaster(message: "Successful update.")+wp_area = Components::Grids::GridArea.new(".grid--area.-widgeted:nth-of-type(1)")expect(wp_area).to have_css(".subject", text: type_work_package.subject)dashboard_page.add_widget(1, 1, :row, "Work packages table")+ # Actually there are two success messages displayed currently. One for the grid getting updated and one+ # for the query assigned to the new widget being created. A user will not notice it but the automated+ # browser can get confused. Therefore we wait.+ sleep(1)++ dashboard_page.expect_and_dismiss_toaster(message: "Successful update.")+filter_area = Components::Grids::GridArea.new(".grid--area.-widgeted:nth-of-type(2)")filter_area.expect_to_span(1, 1, 2, 3)