Wait for product import to finish in spec

The expectation returned to early.
This commit is contained in:
Maikel Linke
2021-12-06 18:01:17 +11:00
parent dcad00d047
commit dc7dfcacba

View File

@@ -724,6 +724,12 @@ describe "Product Import", js: true do
end
def expect_import_completed
expect(page).to have_content I18n.t('admin.product_import.save_results.final_results')
# The step pages are hidden and shown by AngularJS and we get a false
# positive when querying for the content of a hidden step.
#
# expect(page).to have_content I18n.t('admin.product_import.save_results.final_results')
#
# Being more explicit seems to work:
expect(page).to have_selector("h5", text: "Import final results")
end
end