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
Add mobile test case
Kabiru Mwenja45fc40592011
diff --git a/spec/features/activities/work_package/activities_spec.rb b/spec/features/activities/work_package/activities_spec.rbindex 066deac8c70..dc537bb0bf5 100644--- a/spec/features/activities/work_package/activities_spec.rb+++ b/spec/features/activities/work_package/activities_spec.rb@@ -908,6 +908,30 @@ RSpec.describe "Work package activity", :js, :with_cuprite doactivity_tab.expect_journal_container_at_position(50) # would be at the bottom if no anchor would be providedactivity_tab.expect_activity_anchor_link(text: format_time(comment_1.updated_at))++ activity_tab.filter_journals(:only_changes)++ activity_tab.expect_activity_anchor_link(text: format_time(comment_1.updated_at))+ end+ end++ context "when on mobile screen size", with_flag: { work_package_comment_id_url: true } do+ before do+ page.current_window.resize_to(500, 1000)++ visit project_work_package_path(project, work_package.id, "activity", anchor: "comment-#{comment_1.id}")+ wp_page.wait_for_activity_tab+ end++ it "scrolls to the comment specified in the URL", :aggregate_failures do+ wait_for_auto_scrolling_to_finish+ activity_tab.expect_journal_container_at_position(50) # would be at the bottom if no anchor would be provided++ activity_tab.expect_activity_anchor_link(text: format_time(comment_1.updated_at))++ activity_tab.filter_journals(:only_changes)++ activity_tab.expect_activity_anchor_link(text: format_time(comment_1.updated_at))endendend