From 7e5eae1b8d490a237ad88d2a177ce34920fbbfcc Mon Sep 17 00:00:00 2001 From: HugsDaniel Date: Wed, 24 Jan 2018 13:42:54 +0100 Subject: [PATCH] Added testing on statusMessage display for pending changes --- spec/features/admin/customers_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/features/admin/customers_spec.rb b/spec/features/admin/customers_spec.rb index c606f3486b..cfbbd9e0e5 100644 --- a/spec/features/admin/customers_spec.rb +++ b/spec/features/admin/customers_spec.rb @@ -89,6 +89,7 @@ feature 'Customers' do find(:css, "tags-input .tags input").set "awesome\n" expect(page).to have_css ".tag_watcher.update-pending" end + expect(page).to have_content I18n.t('admin.unsaved_changes') click_button "Save Changes" # Every says it updated