From: Manoj Date: Wed, 19 Aug 2015 13:19:40 +0000 (-0400) Subject: 6652: Added assertion and changed assertion to use assert_text instead X-Git-Tag: 1.1.0~1396^2 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/3bfb9c5cbf5dd56b84fd17f9e1dcdd6a219fe5fe 6652: Added assertion and changed assertion to use assert_text instead of page.has_text?. --- 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