X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/modifier.php?a=blobdiff_plain;f=tests%2Fselenium%2Fspecs%2Fpage.js;h=93e0b87758c3f67880634d4d7c342c2687312dc4;hb=447574ceb746c2f4026a8bf77632bdc4604314bb;hp=4604ca3b7865c8c5ee575410425626ac3065ad84;hpb=6497541c9c089966ce7d3b0e0abd6b68192d30d8;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/selenium/specs/page.js b/tests/selenium/specs/page.js index 4604ca3b78..93e0b87758 100644 --- a/tests/selenium/specs/page.js +++ b/tests/selenium/specs/page.js @@ -80,7 +80,8 @@ describe( 'Page', function () { // check assert.strictEqual( EditPage.heading.getText(), name ); - assert( EditPage.displayedContent.getText().match( new RegExp( editContent ) ) ); + // eslint-disable-next-line no-restricted-syntax + assert( EditPage.displayedContent.getText().includes( editContent ) ); } ); it( 'should have history @daily', function () {