diff --git a/test/browser/aac_basic_richtext_test.rb b/test/browser/aac_basic_richtext_test.rb index 88cc11a87..506832b02 100644 --- a/test/browser/aac_basic_richtext_test.rb +++ b/test/browser/aac_basic_richtext_test.rb @@ -43,8 +43,9 @@ class AACBasicRichtextTest < TestCase sleep 1 match( - :css => '#content .text-3', - :value => "some test for browser\nand some other for browser", + :css => '#content .text-3', + :value => "some test for browser\nand some other for browser", + :cleanup => true, ) # richtext multi line @@ -59,8 +60,9 @@ class AACBasicRichtextTest < TestCase sleep 1 match( - :css => '#content .text-5', - :value => "some test for browser\nand some other for browser2", + :css => '#content .text-5', + :value => "some test for browser\nand some other for browser2", + :cleanup => true, ) end end \ No newline at end of file diff --git a/test/browser_test_helper.rb b/test/browser_test_helper.rb index d0dce12ce..276f7e15c 100644 --- a/test/browser_test_helper.rb +++ b/test/browser_test_helper.rb @@ -467,8 +467,10 @@ class TestCase < Test::Unit::TestCase end # do cleanups (needed for richtext tests) - text.gsub!(/\s+$/m, '') - params[:value].gsub!(/\s+$/m, '') + if params[:cleanup] + text.gsub!(/\s+$/m, '') + params[:value].gsub!(/\s+$/m, '') + end match = false if params[:no_quote]