From: Cormac Parle Date: Thu, 11 Apr 2019 12:21:42 +0000 (+0100) Subject: Selenium: fix 'Page should be editable' test X-Git-Tag: 1.34.0-rc.0~2051^2 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=d653232b2287b2081607b14b21f178d1edaac979;p=lhc%2Fweb%2Fwiklou.git 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 --- 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 () {