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

change tests to be compatible with the current changes

bsatarnejadbe11ffbd9b10
diff --git a/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/wp-table-configuration.modal.html b/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/wp-table-configuration.modal.html
index 812b1859e3a..90d4a414ac9 100644
--- a/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/wp-table-configuration.modal.html
+++ b/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/wp-table-configuration.modal.html
@@ -23,6 +23,7 @@
<div class="op-modal--footer">
<button
class="button -highlight"
+ data-qa-selector="op-modal-wp-table-configuration-save-button"
[textContent]="text.applyButton"
(click)="saveChanges()"
>
diff --git a/modules/my_page/spec/features/my/work_package_table_spec.rb b/modules/my_page/spec/features/my/work_package_table_spec.rb
index 1e0acb9b85f..cf2b38e26ed 100644
--- a/modules/my_page/spec/features/my/work_package_table_spec.rb
+++ b/modules/my_page/spec/features/my/work_package_table_spec.rb
@@ -86,7 +86,7 @@ describe 'Arbitrary WorkPackage query table widget on my page', type: :feature,
# Actually there are two success messages displayed currently. One for the grid getting updated and one
# for the query assigned to the new widget being created. A user will not notice it but the automated
# browser can get confused. Therefore we wait.
- sleep(1)
+ sleep(2)
my_page.expect_and_dismiss_toaster message: I18n.t('js.notice_successful_update')
diff --git a/spec/support/components/work_packages/table_configuration_modal.rb b/spec/support/components/work_packages/table_configuration_modal.rb
index a449160fed7..0fe68b31e96 100644
--- a/spec/support/components/work_packages/table_configuration_modal.rb
+++ b/spec/support/components/work_packages/table_configuration_modal.rb
@@ -73,7 +73,7 @@ module Components
end
def save
- find("#{selector} .button.-highlight").click
+ find('[data-qa-selector="op-modal-wp-table-configuration-save-button"]').click
end
def cancel