From d653232b2287b2081607b14b21f178d1edaac979 Mon Sep 17 00:00:00 2001 From: Cormac Parle Date: Thu, 11 Apr 2019 13:21:42 +0100 Subject: [PATCH] Selenium: fix 'Page should be editable' test The test is broken only when and targeting beta cluster, because an extension adds text to page. Instead of checking the entire body of the page, test just checks if expected string is there. Bug: T217544 Change-Id: Ibd67790c1df2cd8556b9c71d872d52cfc18f5ebd --- tests/selenium/specs/page.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/selenium/specs/page.js b/tests/selenium/specs/page.js index 80e12cd56f..4604ca3b78 100644 --- a/tests/selenium/specs/page.js +++ b/tests/selenium/specs/page.js @@ -80,7 +80,7 @@ describe( 'Page', function () { // check assert.strictEqual( EditPage.heading.getText(), name ); - assert.strictEqual( EditPage.displayedContent.getText(), editContent ); + assert( EditPage.displayedContent.getText().match( new RegExp( editContent ) ) ); } ); it( 'should have history @daily', function () { -- 2.20.1