Adapt matcher to capybara v3

This commit is contained in:
Luis Ramos
2020-12-11 00:20:58 +00:00
parent f19946af8d
commit 26165cc08d

View File

@@ -329,7 +329,7 @@ feature '
expect(page).to have_field "variant_price", with: "3.0"
expect(page).to have_field "variant_unit_value_with_description", with: "250 (bottle)"
expect(page).to have_field "variant_on_hand", with: "9"
expect(page).to have_selector "span[name='on_hand']", "9"
expect(page).to have_selector "span[name='on_hand']", text: "9"
select "Volume (L)", from: "variant_unit_with_scale"
fill_in "variant_sku", with: "NEWSKU"