change tests to be compatible with the current changes

pull/10743/head
bsatarnejad 2 years ago
parent 9df7034a3b
commit be11ffbd9b
  1. 1
      frontend/src/app/features/work-packages/components/wp-table/configuration-modal/wp-table-configuration.modal.html
  2. 2
      modules/my_page/spec/features/my/work_package_table_spec.rb
  3. 2
      spec/support/components/work_packages/table_configuration_modal.rb

@ -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()"
>

@ -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')

@ -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

Loading…
Cancel
Save