From d40c4f730058bacc25215b3ceabc6bbd14affa58 Mon Sep 17 00:00:00 2001 From: "Brian R. Bondy" Date: Fri, 27 Jan 2017 00:27:37 -0500 Subject: [PATCH] Fix test caused by google search encoding difference Auditors: @bsclifton The new regex will accept both + and %20 for spaces --- test/components/urlBarSuggestionsTest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/components/urlBarSuggestionsTest.js b/test/components/urlBarSuggestionsTest.js index 43dacdb2b34..cb7d0077f69 100644 --- a/test/components/urlBarSuggestionsTest.js +++ b/test/components/urlBarSuggestionsTest.js @@ -198,6 +198,6 @@ describe('search suggestions', function () { .keys(Brave.keys.DOWN) .waitForExist(urlBarSuggestions + ' li.suggestionItem[data-index="0"]:not(.selected)') .keys(Brave.keys.ENTER) - .waitForInputText(urlInput, /google.*\/.*q=what\+is/) + .waitForInputText(urlInput, /google.*\/.*q=what.+is/) }) })