From b42426a3b81e916ecd694c0ea897a5cb9941433e Mon Sep 17 00:00:00 2001 From: jazzdragon Date: Sat, 27 Apr 2019 18:52:23 -0700 Subject: [PATCH] Add test for existing input alert text --- spec/features/admin/enterprises_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spec/features/admin/enterprises_spec.rb b/spec/features/admin/enterprises_spec.rb index ffc2d010b6..ca3b72682f 100644 --- a/spec/features/admin/enterprises_spec.rb +++ b/spec/features/admin/enterprises_spec.rb @@ -209,6 +209,12 @@ feature %q{ page.should have_checked_field "enterprise_preferred_shopfront_order_cycle_order_orders_open_at" expect(page).to have_checked_field "enterprise_require_login_true" expect(page).to have_checked_field "enterprise_enable_subscriptions_true" + + # Test that the right input alert text is displayed + accept_alert('Please enter a URL to insert') do + first('.ta-text').click + first('button[name="insertLink"]').click + end end describe "producer properties" do