X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fselenium%2Fspecs%2Fpage.js;h=93e0b87758c3f67880634d4d7c342c2687312dc4;hb=284778405b0e41c57b3085958401e07b6ca742e6;hp=d35843b884588107c14bd4110694845996442eed;hpb=9aed0482f429ae0a06c5f4e3b16d5562449790ca;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/selenium/specs/page.js b/tests/selenium/specs/page.js index d35843b884..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.strictEqual( EditPage.displayedContent.getText(), editContent ); + // eslint-disable-next-line no-restricted-syntax + assert( EditPage.displayedContent.getText().includes( editContent ) ); } ); it( 'should have history @daily', function () { @@ -91,7 +92,7 @@ describe( 'Page', function () { // check HistoryPage.open( name ); - assert.strictEqual( HistoryPage.comment.getText(), `(Created or updated page with "${content}")` ); + assert.strictEqual( HistoryPage.comment.getText(), `Created or updated page with "${content}"` ); } ); it( 'should be deletable', function () {