nobody@docker-desktop:/core$ git diff diff --git a/tests/selenium/specs/page.js b/tests/selenium/specs/page.js index 74408ccae1..042ec81279 100644 --- a/tests/selenium/specs/page.js +++ b/tests/selenium/specs/page.js @@ -18,7 +18,7 @@ describe( 'Page', function () { } ); beforeEach( function () { - browser.deleteAllCookies(); + browser.reloadSession(); content = Util.getTestString( 'beforeEach-content-' ); name = Util.getTestString( 'BeforeEach-name-' ); } ); nobody@docker-desktop:/core$ npm run selenium-test > @ selenium-test /core > wdio ./tests/selenium/wdio.conf.js Execution of 6 spec files started at 2021-03-10T15:59:20.309Z (node:686) ExperimentalWarning: The dns.promises API is experimental (node:686) ExperimentalWarning: The fs.promises API is experimental [0-0] (node:695) ExperimentalWarning: The dns.promises API is experimental [0-0] (node:695) ExperimentalWarning: The fs.promises API is experimental [0-0] RUNNING in chrome - /tests/selenium/wdio-mediawiki/specs/BlankPage.js [0-0] Screenshot location: /core/tests/selenium/log/BlankPage-should-have-its-title-%40daily.png [0-0] PASSED in chrome - /tests/selenium/wdio-mediawiki/specs/BlankPage.js [0-1] (node:785) ExperimentalWarning: The dns.promises API is experimental [0-1] (node:785) ExperimentalWarning: The fs.promises API is experimental [0-1] RUNNING in chrome - /tests/selenium/specs/page.js [0-1] [15:59:42] [S] [MWBOT] Login successful: Admin@http://localhost:8080/w [0-1] Screenshot location: /core/tests/selenium/log/Page-should-be-previewable.png [0-1] AssertionError [ERR_ASSERTION] in "Page should be previewable" Input A expected to strictly equal input B: + expected - actual - 'beforeEach-content-0.15330041172197428-Iñtërnâtiônàlizætiøn\n\n' + 'beforeEach-content-0.15330041172197428-Iñtërnâtiônàlizætiøn' [0-1] (node:785) UnhandledPromiseRejectionWarning: Protocol error (Page.captureScreenshot): Target closed. at Page. (/core/node_modules/puppeteer-core/lib/helper.js:94:19) at DevToolsDriver.takeScreenshot (/core/node_modules/devtools/build/commands/takeScreenshot.js:10:15) at Browser.wrappedCommand (/core/node_modules/devtools/build/devtoolsdriver.js:92:47) at Video.onTestEnd (/core/node_modules/wdio-video-reporter/dist/wdio-video-reporter.js:584:19) at Video.WDIOReporter.on (/core/node_modules/wdio-video-reporter/node_modules/@wdio/reporter/build/index.js:133:18) at reporters.forEach.reporter (/core/node_modules/@wdio/runner/build/reporter.js:38:49) at Array.forEach () at BaseReporter.emit (/core/node_modules/@wdio/runner/build/reporter.js:38:20) at MochaAdapter.emit (/core/node_modules/@wdio/mocha-framework/build/index.js:258:19) at /core/node_modules/mocha/lib/runner.js:773:16 at done (/core/node_modules/mocha/lib/runnable.js:314:5) at /core/node_modules/mocha/lib/runnable.js:385:11 (node:785) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2) (node:785) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. [0-1] Screenshot location: /core/tests/selenium/log/Page-should-be-creatable.png [0-1] AssertionError [ERR_ASSERTION] in "Page should be creatable" Input A expected to strictly equal input B: + expected - actual - 'beforeEach-content-0.1694202860883247-Iñtërnâtiônàlizætiøn\n\n' + 'beforeEach-content-0.1694202860883247-Iñtërnâtiônàlizætiøn' [0-1] (node:785) UnhandledPromiseRejectionWarning: Protocol error (Page.captureScreenshot): Target closed. at Page. (/core/node_modules/puppeteer-core/lib/helper.js:94:19) at DevToolsDriver.takeScreenshot (/core/node_modules/devtools/build/commands/takeScreenshot.js:10:15) at Browser.wrappedCommand (/core/node_modules/devtools/build/devtoolsdriver.js:92:47) at Video.onTestEnd (/core/node_modules/wdio-video-reporter/dist/wdio-video-reporter.js:584:19) at Video.WDIOReporter.on (/core/node_modules/wdio-video-reporter/node_modules/@wdio/reporter/build/index.js:133:18) at reporters.forEach.reporter (/core/node_modules/@wdio/runner/build/reporter.js:38:49) at Array.forEach () at BaseReporter.emit (/core/node_modules/@wdio/runner/build/reporter.js:38:20) at MochaAdapter.emit (/core/node_modules/@wdio/mocha-framework/build/index.js:258:19) at /core/node_modules/mocha/lib/runner.js:773:16 at done (/core/node_modules/mocha/lib/runnable.js:314:5) at /core/node_modules/mocha/lib/runnable.js:385:11 [0-1] (node:785) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 4) [0-1] Screenshot location: /core/tests/selenium/log/Page-should-be-re-creatable.png [0-1] AssertionError [ERR_ASSERTION] in "Page should be re-creatable" Input A expected to strictly equal input B: + expected - actual - 'beforeEach-content-0.551480775671251-Iñtërnâtiônàlizætiøn\n\n' + 'beforeEach-content-0.551480775671251-Iñtërnâtiônàlizætiøn' [0-1] (node:785) UnhandledPromiseRejectionWarning: Protocol error (Page.captureScreenshot): Target closed. at Page. (/core/node_modules/puppeteer-core/lib/helper.js:94:19) at DevToolsDriver.takeScreenshot (/core/node_modules/devtools/build/commands/takeScreenshot.js:10:15) at Browser.wrappedCommand (/core/node_modules/devtools/build/devtoolsdriver.js:92:47) at Video.onTestEnd (/core/node_modules/wdio-video-reporter/dist/wdio-video-reporter.js:584:19) at Video.WDIOReporter.on (/core/node_modules/wdio-video-reporter/node_modules/@wdio/reporter/build/index.js:133:18) at reporters.forEach.reporter (/core/node_modules/@wdio/runner/build/reporter.js:38:49) at Array.forEach () at BaseReporter.emit (/core/node_modules/@wdio/runner/build/reporter.js:38:20) at MochaAdapter.emit (/core/node_modules/@wdio/mocha-framework/build/index.js:258:19) at /core/node_modules/mocha/lib/runner.js:773:16 at done (/core/node_modules/mocha/lib/runnable.js:314:5) at /core/node_modules/mocha/lib/runnable.js:385:11 (node:785) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 6) [0-1] Screenshot location: /core/tests/selenium/log/Page-should-be-editable-%40daily.png [0-1] (node:785) UnhandledPromiseRejectionWarning: Protocol error (Page.captureScreenshot): Target closed. at Page. (/core/node_modules/puppeteer-core/lib/helper.js:94:19) at DevToolsDriver.takeScreenshot (/core/node_modules/devtools/build/commands/takeScreenshot.js:10:15) at Browser.wrappedCommand (/core/node_modules/devtools/build/devtoolsdriver.js:92:47) at Video.onTestEnd (/core/node_modules/wdio-video-reporter/dist/wdio-video-reporter.js:584:19) at Video.WDIOReporter.on (/core/node_modules/wdio-video-reporter/node_modules/@wdio/reporter/build/index.js:133:18) at reporters.forEach.reporter (/core/node_modules/@wdio/runner/build/reporter.js:38:49) at Array.forEach () at BaseReporter.emit (/core/node_modules/@wdio/runner/build/reporter.js:38:20) at MochaAdapter.emit (/core/node_modules/@wdio/mocha-framework/build/index.js:258:19) at /core/node_modules/mocha/lib/runner.js:773:16 at done (/core/node_modules/mocha/lib/runnable.js:314:5) at /core/node_modules/mocha/lib/runnable.js:385:11 (node:785) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 7) [0-1] Screenshot location: /core/tests/selenium/log/Page-should-have-history-%40daily.png [0-1] (node:785) UnhandledPromiseRejectionWarning: Protocol error (Page.captureScreenshot): Target closed. at Page. (/core/node_modules/puppeteer-core/lib/helper.js:94:19) at DevToolsDriver.takeScreenshot (/core/node_modules/devtools/build/commands/takeScreenshot.js:10:15) at Browser.wrappedCommand (/core/node_modules/devtools/build/devtoolsdriver.js:92:47) at Video.onTestEnd (/core/node_modules/wdio-video-reporter/dist/wdio-video-reporter.js:584:19) at Video.WDIOReporter.on (/core/node_modules/wdio-video-reporter/node_modules/@wdio/reporter/build/index.js:133:18) at reporters.forEach.reporter (/core/node_modules/@wdio/runner/build/reporter.js:38:49) at Array.forEach () at BaseReporter.emit (/core/node_modules/@wdio/runner/build/reporter.js:38:20) at MochaAdapter.emit (/core/node_modules/@wdio/mocha-framework/build/index.js:258:19) at /core/node_modules/mocha/lib/runner.js:773:16 at done (/core/node_modules/mocha/lib/runnable.js:314:5) at /core/node_modules/mocha/lib/runnable.js:385:11 [0-1] (node:785) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 8) [0-1] Screenshot location: /core/tests/selenium/log/Page-should-be-deletable.png [0-1] AssertionError [ERR_ASSERTION] in "Page should be deletable" Input A expected to strictly equal input B: + expected - actual - '"BeforeEach-name-0.17410897123832791-Iñtërnâtiônàlizætiøn" has been deleted. See deletion log for a record of recent deletions.\n\nReturn to Main Page.\n\n' + '"BeforeEach-name-0.17410897123832791-Iñtërnâtiônàlizætiøn" has been deleted. See deletion log for a record of recent deletions.\n\nReturn to Main Page.' [0-1] (node:785) UnhandledPromiseRejectionWarning: Protocol error (Page.captureScreenshot): Target closed. at Page. (/core/node_modules/puppeteer-core/lib/helper.js:94:19) at DevToolsDriver.takeScreenshot (/core/node_modules/devtools/build/commands/takeScreenshot.js:10:15) at Browser.wrappedCommand (/core/node_modules/devtools/build/devtoolsdriver.js:92:47) at Video.onTestEnd (/core/node_modules/wdio-video-reporter/dist/wdio-video-reporter.js:584:19) at Video.WDIOReporter.on (/core/node_modules/wdio-video-reporter/node_modules/@wdio/reporter/build/index.js:133:18) at reporters.forEach.reporter (/core/node_modules/@wdio/runner/build/reporter.js:38:49) at Array.forEach () at BaseReporter.emit (/core/node_modules/@wdio/runner/build/reporter.js:38:20) at MochaAdapter.emit (/core/node_modules/@wdio/mocha-framework/build/index.js:258:19) at /core/node_modules/mocha/lib/runner.js:773:16 at done (/core/node_modules/mocha/lib/runnable.js:314:5) at /core/node_modules/mocha/lib/runnable.js:385:11 [0-1] (node:785) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 10) [0-1] Screenshot location: /core/tests/selenium/log/Page-should-be-restorable.png [0-1] AssertionError [ERR_ASSERTION] in "Page should be restorable" Input A expected to strictly equal input B: + expected - actual - 'BeforeEach-name-0.2977968132313267-Iñtërnâtiônàlizætiøn has been restored\n\nConsult the deletion log for a record of recent deletions and restorations.\n\n' + 'BeforeEach-name-0.2977968132313267-Iñtërnâtiônàlizætiøn has been restored\n\nConsult the deletion log for a record of recent deletions and restorations.' [0-1] (node:785) UnhandledPromiseRejectionWarning: Protocol error (Page.captureScreenshot): Target closed. at Page. (/core/node_modules/puppeteer-core/lib/helper.js:94:19) at DevToolsDriver.takeScreenshot (/core/node_modules/devtools/build/commands/takeScreenshot.js:10:15) at Browser.wrappedCommand (/core/node_modules/devtools/build/devtoolsdriver.js:92:47) at Video.onTestEnd (/core/node_modules/wdio-video-reporter/dist/wdio-video-reporter.js:584:19) at Video.WDIOReporter.on (/core/node_modules/wdio-video-reporter/node_modules/@wdio/reporter/build/index.js:133:18) at reporters.forEach.reporter (/core/node_modules/@wdio/runner/build/reporter.js:38:49) at Array.forEach () at BaseReporter.emit (/core/node_modules/@wdio/runner/build/reporter.js:38:20) at MochaAdapter.emit (/core/node_modules/@wdio/mocha-framework/build/index.js:258:19) at /core/node_modules/mocha/lib/runner.js:773:16 at done (/core/node_modules/mocha/lib/runnable.js:314:5) at /core/node_modules/mocha/lib/runnable.js:385:11 (node:785) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 12) [0-1] Screenshot location: /core/tests/selenium/log/Page-should-be-undoable.png [0-1] AssertionError [ERR_ASSERTION] in "Page should be undoable" Input A expected to strictly equal input B: + expected - actual - 'beforeEach-content-0.9989646097116156-Iñtërnâtiônàlizætiøn\n\n' + 'beforeEach-content-0.9989646097116156-Iñtërnâtiônàlizætiøn' [0-1] (node:785) UnhandledPromiseRejectionWarning: Protocol error (Page.captureScreenshot): Target closed. at Page. (/core/node_modules/puppeteer-core/lib/helper.js:94:19) at DevToolsDriver.takeScreenshot (/core/node_modules/devtools/build/commands/takeScreenshot.js:10:15) at Browser.wrappedCommand (/core/node_modules/devtools/build/devtoolsdriver.js:92:47) at Video.onTestEnd (/core/node_modules/wdio-video-reporter/dist/wdio-video-reporter.js:584:19) at Video.WDIOReporter.on (/core/node_modules/wdio-video-reporter/node_modules/@wdio/reporter/build/index.js:133:18) at reporters.forEach.reporter (/core/node_modules/@wdio/runner/build/reporter.js:38:49) at Array.forEach () at BaseReporter.emit (/core/node_modules/@wdio/runner/build/reporter.js:38:20) at MochaAdapter.emit (/core/node_modules/@wdio/mocha-framework/build/index.js:258:19) at /core/node_modules/mocha/lib/runner.js:773:16 at done (/core/node_modules/mocha/lib/runnable.js:314:5) at /core/node_modules/mocha/lib/runnable.js:385:11 [0-1] (node:785) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 14) [0-1] (node:785) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 2) (node:785) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 4) (node:785) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 6) (node:785) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 7) [0-1] (node:785) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 8) (node:785) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 10) (node:785) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 12) (node:785) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 14) [0-1] FAILED in chrome - /tests/selenium/specs/page.js [0-2] (node:1492) ExperimentalWarning: The dns.promises API is experimental [0-2] (node:1492) ExperimentalWarning: The fs.promises API is experimental [0-2] RUNNING in chrome - /tests/selenium/specs/rollback.js [0-2] PASSED in chrome - /tests/selenium/specs/rollback.js [0-3] (node:1585) ExperimentalWarning: The dns.promises API is experimental [0-3] (node:1585) ExperimentalWarning: The fs.promises API is experimental [0-3] RUNNING in chrome - /tests/selenium/specs/specialrecentchanges.js [0-3] [16:01:14] [S] [MWBOT] Login successful: Admin@http://localhost:8080/w [0-3] Screenshot location: /core/tests/selenium/log/Special%3ARecentChanges-shows-page-creation.png [0-3] PASSED in chrome - /tests/selenium/specs/specialrecentchanges.js [0-4] (node:1676) ExperimentalWarning: The dns.promises API is experimental [0-4] (node:1676) ExperimentalWarning: The fs.promises API is experimental [0-4] RUNNING in chrome - /tests/selenium/specs/specialwatchlist.js [0-4] [16:01:29] [S] [MWBOT] Login successful: Admin@http://localhost:8080/w [0-4] Screenshot location: /core/tests/selenium/log/Special%3AWatchlist-should-show-page-with-new-edit.png [0-4] PASSED in chrome - /tests/selenium/specs/specialwatchlist.js [0-5] (node:1767) ExperimentalWarning: The dns.promises API is experimental [0-5] (node:1767) ExperimentalWarning: The fs.promises API is experimental [0-5] RUNNING in chrome - /tests/selenium/specs/user.js [0-5] [16:01:52] [S] [MWBOT] Login successful: Admin@http://localhost:8080/w [0-5] Screenshot location: /core/tests/selenium/log/User-should-be-able-to-create-account.png [0-5] Screenshot location: /core/tests/selenium/log/User-should-be-able-to-log-in-%40daily.png [0-5] PASSED in chrome - /tests/selenium/specs/user.js "dot" Reporter: .FFF..FFF........... Spec Files: 5 passed, 1 failed, 6 total (100% completed) in 00:02:38 npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @ selenium-test: `wdio ./tests/selenium/wdio.conf.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @ selenium-test script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /cache/_logs/2021-03-10T16_01_59_248Z-debug.log