From 3bfb9c5cbf5dd56b84fd17f9e1dcdd6a219fe5fe Mon Sep 17 00:00:00 2001 From: Manoj Date: Wed, 19 Aug 2015 09:19:40 -0400 Subject: [PATCH] 6652: Added assertion and changed assertion to use assert_text instead of page.has_text?. --- apps/workbench/test/integration/application_layout_test.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/workbench/test/integration/application_layout_test.rb b/apps/workbench/test/integration/application_layout_test.rb index 429e811a8c..ba36220717 100644 --- a/apps/workbench/test/integration/application_layout_test.rb +++ b/apps/workbench/test/integration/application_layout_test.rb @@ -240,10 +240,12 @@ class ApplicationLayoutTest < ActionDispatch::IntegrationTest if add_button_text assert_selector 'button', text: "Add a new #{add_button_text}" find('button', text: "Add a new #{add_button_text}").click + else + assert_no_selector 'button', text:"Add a new" end # look for unique property in the current page - assert page.has_text? look_for + assert_text look_for end end end -- 2.30.2