Skip to content

Commit 8d75b77

Browse files
committed
Admin shipping method spec: Wait for flash message
Otherwise, the current path might not be what we expect yet. (cherry picked from commit 1d42a7c)
1 parent aab2859 commit 8d75b77

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

backend/spec/features/admin/configuration/shipping_methods_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
end
3636

3737
click_on "Create"
38+
expect(page).to have_content("Shipping Method \"bullock cart\" has been successfully created!")
3839
expect(current_path).to eql(spree.edit_admin_shipping_method_path(Spree::ShippingMethod.last))
3940

4041
visit spree.new_admin_shipping_method_path

0 commit comments

Comments
 (0)