Skip to content

Commit

Permalink
Fix label duplicate in another project
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverguenther committed Sep 3, 2024
1 parent 88d7335 commit 6df966b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion config/locales/js-en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ en:
button_copy: "Copy"
button_copy_to_clipboard: "Copy to clipboard"
button_copy_link_to_clipboard: "Copy link to clipboard"
button_copy_to_other_project: "Duplicate to other project"
button_copy_to_other_project: "Duplicate in another project"
button_custom-fields: "Custom fields"
button_delete: "Delete"
button_delete_watcher: "Delete watcher"
Expand Down
2 changes: 1 addition & 1 deletion spec/features/work_packages/bulk/copy_work_package_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@

it "copies the work package" do
context_menu.open_for work_package
context_menu.choose "Duplicate to other project"
context_menu.choose "Duplicate in another project"

# On work packages move page
expect_page_reload do
Expand Down
2 changes: 1 addition & 1 deletion spec/features/work_packages/details/context_menu_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
end

it "sets the correct copy project link" do
find(".menu-item", text: "Duplicate to other project", exact_text: true).click
find(".menu-item", text: "Duplicate in another project", exact_text: true).click
expect(page).to have_css("h2", text: I18n.t(:button_copy))
expect(page).to have_css("a.work_package", text: "##{work_package.id}")
expect(page).to have_current_path /work_packages\/move\/new\?copy=true&ids\[\]=#{work_package.id}/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@
open_context_menu.call
menu.expect_no_options "Add predecessor", "Add follower, Show relations"

# Duplicate to other project
# Duplicate in another project
open_context_menu.call
menu.choose("Duplicate to other project")
menu.choose("Duplicate in another project")
expect(page).to have_css("h2", text: I18n.t(:button_copy))
expect(page).to have_css("a.work_package", text: "##{work_package.id}")
end
Expand Down

0 comments on commit 6df966b

Please sign in to comment.