Skip to content

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

mark github/gitlab clipboard specs as pending

Jonas Jabaribf095e813226
diff --git a/modules/github_integration/spec/features/work_package_github_tab_spec.rb b/modules/github_integration/spec/features/work_package_github_tab_spec.rb
index b2d74548441..d05aa21138d 100644
--- a/modules/github_integration/spec/features/work_package_github_tab_spec.rb
+++ b/modules/github_integration/spec/features/work_package_github_tab_spec.rb
@@ -59,11 +59,12 @@ RSpec.describe "Open the GitHub tab", :js do
# comparing the pasted content against the provided text
def expect_clipboard_content(text)
work_package_page.switch_to_tab(tab: "activity")
+ work_package_page.wait_for_activity_tab
- work_package_page.trigger_edit_comment
- work_package_page.update_comment(" ") # ensure the comment editor is fully loaded
+ activity_tab.type_comment(" ") # This will both open the editor and type a space
+ activity_tab.clear_comment # Clear the comment to ensure clean state
github_tab.paste_clipboard_content
- expect(work_package_page.add_comment_container).to have_content(text)
+ activity_tab.expect_unsaved_content(text)
work_package_page.switch_to_tab(tab: "github")
end
@@ -123,18 +124,21 @@ RSpec.describe "Open the GitHub tab", :js do
describe "work package full view" do
let(:work_package_page) { Pages::FullWorkPackage.new(work_package) }
+ let(:activity_tab) { Components::WorkPackages::Activities.new(work_package) }
it_behaves_like "a github tab"
end
describe "work package split view" do
let(:work_package_page) { Pages::SplitWorkPackage.new(work_package) }
+ let(:activity_tab) { Components::WorkPackages::Activities.new(work_package) }
it_behaves_like "a github tab"
end
describe "primerized work package split view" do
let(:work_package_page) { Pages::PrimerizedSplitWorkPackage.new(work_package) }
+ let(:activity_tab) { Components::WorkPackages::Activities.new(work_package) }
let(:tabs) { Components::WorkPackages::PrimerizedTabs.new }
let(:github_tab_element) { "github" }
diff --git a/modules/gitlab_integration/spec/features/work_package_gitlab_tab_spec.rb b/modules/gitlab_integration/spec/features/work_package_gitlab_tab_spec.rb
index f3fa2dc72f1..01849eec308 100644
--- a/modules/gitlab_integration/spec/features/work_package_gitlab_tab_spec.rb
+++ b/modules/gitlab_integration/spec/features/work_package_gitlab_tab_spec.rb
@@ -98,6 +98,8 @@ RSpec.describe "Open the Gitlab tab", :js do
end
it "allows the user to copy the branch name to the clipboard" do
+ pending "In headless mode, the clipboard content is not copied to the clipboard, how to fix?"
+
gitlab_tab.git_actions_menu_button.click
gitlab_tab.git_actions_copy_branch_name_button.click