Adds sleep(1)

This commit is contained in:
filipefurtad0
2023-05-10 19:26:39 +01:00
parent 2836751698
commit f5eb72c804

View File

@@ -179,9 +179,9 @@ describe '
visit spree.edit_admin_order_path(order)
select2_select product.name, from: 'add_variant_id', search: true
find('button.add_variant').click
# Wait for JS
sleep(1)
page.has_selector?("table.index tbody tr td")
expect(page).to have_selector 'td', text: product.name
expect(order.line_items.reload.map(&:product)).to include product