From 6e77afbf35644dc24519d18be6ae7e66287d36e7 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Sat, 23 Feb 2019 20:33:05 +0000 Subject: [PATCH] Adjust expectations in flaky spec --- spec/features/admin/shipping_methods_spec.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spec/features/admin/shipping_methods_spec.rb b/spec/features/admin/shipping_methods_spec.rb index bb65e70255..03f1bcec8c 100644 --- a/spec/features/admin/shipping_methods_spec.rb +++ b/spec/features/admin/shipping_methods_spec.rb @@ -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"