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

WIP: Add time_entry_activity_spec

Mir Bhatiaf011ed99c361
diff --git a/spec/features/activities/time_entry_activity_spec.rb b/spec/features/activities/time_entry_activity_spec.rb
index 182824cfbdc..b9c3dbac04e 100644
--- a/spec/features/activities/time_entry_activity_spec.rb
+++ b/spec/features/activities/time_entry_activity_spec.rb
@@ -65,8 +65,6 @@ describe 'TimeEntry activities' do
user:,
comments: 'lorem ipsum')
end
- # let(:wiki) { project.wiki }
- # let(:editor) { Components::WysiwygEditor.new }
before do
login_as user
@@ -81,15 +79,16 @@ describe 'TimeEntry activities' do
uncheck 'Work packages'
click_button 'Apply'
- binding.pry
within("li.op-activity-list--item", match: :first) do
- expect(page).to have_link("#{project.types.first} ##{work_package.id}: #{work_package.subject}") # follow link?
+ expect(page).to have_link("#{project.types.first} ##{work_package.id}: #{work_package.subject}")
expect(page).to have_selector('li', text: "Spent time: #{time_entry.hours.to_i} hours")
expect(page).to have_link('Details')
-
click_link('Details')
- expect(find_field('Work Package Value').value).to eq("#{work_package.id}")
end
+
+ expect(find_field('work_package_id_arg_1_val').value).to eq("#{work_package.id}")
+
+
end
end