mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-31 21:37:16 +00:00
Adjust expectations in flaky spec
This commit is contained in:
@@ -103,9 +103,8 @@ feature 'shipping methods' do
|
||||
|
||||
click_button I18n.t("actions.create")
|
||||
|
||||
expect(page).to have_no_button I18n.t("actions.create")
|
||||
message = "Shipping method \"Teleport\" has been successfully created!"
|
||||
expect(page).to have_flash_message message
|
||||
expect(page).to have_content I18n.t('editing_shipping_method')
|
||||
expect(flash_message).to eq I18n.t('successfully_created', resource: 'Shipping method "Teleport"')
|
||||
|
||||
expect(first('tags-input .tag-list ti-tag-item')).to have_content "local"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user