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

adapt specs

ulfertsb607c33c30d3
diff --git a/modules/dashboards/spec/features/time_entries_spec.rb b/modules/dashboards/spec/features/time_entries_spec.rb
index 12fc9ca2f92..dc4c9621eb5 100644
--- a/modules/dashboards/spec/features/time_entries_spec.rb
+++ b/modules/dashboards/spec/features/time_entries_spec.rb
@@ -93,7 +93,7 @@ describe 'Time entries widget on dashboard', type: :feature, js: true, with_mail
it 'adds the widget and checks the displayed entries' do
# within top-right area, add an additional widget
- dashboard.add_widget(1, 1, :within, 'Spent time')
+ dashboard.add_widget(1, 1, :within, 'Spent time \(last 7 days\)')
spent_time_widget = Components::Grids::GridArea.new('.grid--area.-widgeted:nth-of-type(1)')
diff --git a/modules/my_page/spec/features/my/time_entries_current_user_spec.rb b/modules/my_page/spec/features/my/time_entries_current_user_spec.rb
index e1f48f10704..b9698cf6ab5 100644
--- a/modules/my_page/spec/features/my/time_entries_current_user_spec.rb
+++ b/modules/my_page/spec/features/my/time_entries_current_user_spec.rb
@@ -114,7 +114,7 @@ describe 'My page time entries current user widget spec', type: :feature, js: tr
it 'adds the widget which then displays time entries and allows manipulating them' do
# within top-right area, add an additional widget
- my_page.add_widget(1, 1, :within, 'Spent time')
+ my_page.add_widget(1, 1, :within, 'My spent time')
entries_area = Components::Grids::GridArea.new('.grid--area.-widgeted:nth-of-type(1)')
@@ -215,7 +215,7 @@ describe 'My page time entries current user widget spec', type: :feature, js: tr
end
expect(page)
- .to have_content(I18n.t('js.time_entry.edit'))
+ .to have_content(I18n.t('js.time_entry.label'))
activity_field.activate!
activity_field.set_value(other_activity.name)