Merge "selenium: Replace regex matching with includes()"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 15 Apr 2019 17:30:47 +0000 (17:30 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 15 Apr 2019 17:30:47 +0000 (17:30 +0000)
tests/selenium/specs/page.js

index 4604ca3..93e0b87 100644 (file)
@@ -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 () {