Я не могу найти в официальном документе список всех предметов, поэтому я прихожу сюда, чтобы просто выяснить некоторые детали.(утечка объекта в дно)
образец:
{
"console": [
{
"message": "CONTROL DESKTOP testSuiteConfig { domain: 'https://www-qa.chewy.net',\n route: '/app/account/orderhistory',\n experimentName: '',\n experiementVariationName: '',\n isFullPage: true,\n mockSelectorsConfigList: '',\n headless: true,\n device: null,\n isVeryLargePage: true,\n isLoggedIn: true,\n isVariant: false,\n closeBrowserAfterSnapshot: true }",
"origin": "/src/command/getPageImageShot.js:48",
"type": "log"
},
{
"message": "\u001b[33mhttps://www-qa.chewy.net/app/login\u001b[39m",
"origin": "/src/fragments/runLogin.js:4",
"type": "log"
},
{
"message": "\u001b[35mhttps://www-qa.chewy.net/app/account/orderhistory\u001b[39m",
"origin": "/src/fragments/runPageView.js:63",
"type": "log"
},
{
"message": "\u001b[32m------------- MOCK BEG\u001b[39m",
"origin": "/src/fragments/getScreenshot.js:44",
"type": "log"
},
{
"message": "\u001b[34mrunPageView before browser close\u001b[39m",
"origin": "/src/fragments/getScreenshot.js:148",
"type": "log"
},
{
"message": "\u001b[34mrunPageView after browser close\u001b[39m",
"origin": "/src/fragments/getScreenshot.js:152",
"type": "log"
},
{
"message": "image default desktop ",
"origin": "/src/command/getPageImageShot.js:63",
"type": "log"
},
{
"message": "CONTROL DESKTOP testSuiteConfig { domain: 'https://www-qa4.chewy.net',\n route: '/app/account/orderhistory',\n experimentName: '',\n experiementVariationName: '',\n isFullPage: true,\n mockSelectorsConfigList: '',\n headless: true,\n device: null,\n isVeryLargePage: true,\n isLoggedIn: false,\n isVariant: false,\n closeBrowserAfterSnapshot: true }",
"origin": "/src/command/getPageImageShot.js:48",
"type": "log"
},
{
"message": "\u001b[35mhttps://www-qa4.chewy.net/app/account/orderhistory\u001b[39m",
"origin": "/src/fragments/runPageView.js:63",
"type": "log"
},
{
"message": "\u001b[32m------------- MOCK BEG\u001b[39m",
"origin": "/src/fragments/getScreenshot.js:44",
"type": "log"
},
{
"message": "\u001b[34mrunPageView before browser close\u001b[39m",
"origin": "/src/fragments/getScreenshot.js:148",
"type": "log"
},
{
"message": "\u001b[34mrunPageView after browser close\u001b[39m",
"origin": "/src/fragments/getScreenshot.js:152",
"type": "log"
},
{
"message": "image default desktop ",
"origin": "/src/command/getPageImageShot.js:63",
"type": "log"
}
],
"failureMessage": "\u001b[1m\u001b[31m \u001b[1m● \u001b[1maccount-orderhistory page - authenticated › desktop › CONTROL\u001b[39m\u001b[22m\n\n Expected image to be the same size as the snapshot (1440x3904), but was different (1440x1080).\n \u001b[1m\u001b[31mSee diff for details:\u001b[39m\u001b[22m \u001b[31m/src/pages/__image_snapshots__/__diff_output__/account-orderhistory-test-js-account-orderhistory-page-authenticated-desktop-control-1-diff.png\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 62 | \u001b[39m\u001b[0m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 63 | \u001b[39m console\u001b[33m.\u001b[39mlog(\u001b[32m'image default desktop'\u001b[39m\u001b[33m,\u001b[39m image)\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m \u001b[0m\u001b[31m\u001b[1m>\u001b[2m\u001b[39m\u001b[90m 64 | \u001b[39m expect(image)\u001b[33m.\u001b[39mtoMatchImageSnapshot({ threshold\u001b[33m:\u001b[39m \u001b[35m0.3\u001b[39m })\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m | \u001b[39m \u001b[31m\u001b[1m^\u001b[2m\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 65 | \u001b[39m })\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 66 | \u001b[39m\u001b[0m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 67 | \u001b[39m \u001b[90m// if (experimentName || experiementVariationName) {\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toMatchImageSnapshot (\u001b[2msrc/command/getPageImageShot.js\u001b[2m:64:25)\u001b[2m\u001b[22m\n\n\u001b[1m\u001b[31m \u001b[1m● \u001b[1maccount-orderhistory page - unauthenticated › desktop › CONTROL\u001b[39m\u001b[22m\n\n Expected image to match or be a close match to snapshot but was 0.010095164609053499% different from snapshot (157 differing pixels).\n \u001b[1m\u001b[31mSee diff for details:\u001b[39m\u001b[22m \u001b[31m/src/pages/__image_snapshots__/__diff_output__/account-orderhistory-test-js-account-orderhistory-page-unauthenticated-desktop-control-1-diff.png\u001b[39m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 62 | \u001b[39m\u001b[0m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 63 | \u001b[39m console\u001b[33m.\u001b[39mlog(\u001b[32m'image default desktop'\u001b[39m\u001b[33m,\u001b[39m image)\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m \u001b[0m\u001b[31m\u001b[1m>\u001b[2m\u001b[39m\u001b[90m 64 | \u001b[39m expect(image)\u001b[33m.\u001b[39mtoMatchImageSnapshot({ threshold\u001b[33m:\u001b[39m \u001b[35m0.3\u001b[39m })\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m | \u001b[39m \u001b[31m\u001b[1m^\u001b[2m\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 65 | \u001b[39m })\u001b[33m;\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 66 | \u001b[39m\u001b[0m\u001b[22m\n\u001b[2m \u001b[0m \u001b[90m 67 | \u001b[39m \u001b[90m// if (experimentName || experiementVariationName) {\u001b[39m\u001b[0m\u001b[22m\n\u001b[2m\u001b[22m\n\u001b[2m \u001b[2mat Object.toMatchImageSnapshot (\u001b[2msrc/command/getPageImageShot.js\u001b[2m:64:25)\u001b[2m\u001b[22m\n",
"numFailingTests": 2,
"numPassingTests": 0,
"numPendingTests": 0,
"numTodoTests": 0,
"perfStats": {
"end": 1560356637454,
"start": 1560356616108
},
"snapshot": {
"added": 0,
"fileDeleted": false,
"matched": 0,
"unchecked": 0,
"unmatched": 2,
"updated": 0,
"uncheckedKeys": []
},
"testFilePath": "/src/pages/account-orderhistory.test.js",
"testResults": [
{
"ancestorTitles": [
"account-orderhistory page - authenticated",
"desktop"
],
"duration": 13635,
"failureMessages": [
"Error: Expected image to be the same size as the snapshot (1440x3904), but was different (1440x1080).\n\u001b[1m\u001b[31mSee diff for details:\u001b[39m\u001b[22m \u001b[31m/src/pages/__image_snapshots__/__diff_output__/account-orderhistory-test-js-account-orderhistory-page-authenticated-desktop-control-1-diff.png\u001b[39m\n at Object.toMatchImageSnapshot (/src/command/getPageImageShot.js:64:25)\n at "
],
"fullName": "account-orderhistory page - authenticated desktop CONTROL",
"location": null,
"numPassingAsserts": 0,
"status": "failed",
"title": "CONTROL"
},
{
"ancestorTitles": [
"account-orderhistory page - unauthenticated",
"desktop"
],
"duration": 6401,
"failureMessages": [
"Error: Expected image to match or be a close match to snapshot but was 0.010095164609053499% different from snapshot (157 differing pixels).\n\u001b[1m\u001b[31mSee diff for details:\u001b[39m\u001b[22m \u001b[31m/src/pages/__image_snapshots__/__diff_output__/account-orderhistory-test-js-account-orderhistory-page-unauthenticated-desktop-control-1-diff.png\u001b[39m\n at Object.toMatchImageSnapshot (/src/command/getPageImageShot.js:64:25)\n at "
],
"fullName": "account-orderhistory page - unauthenticated desktop CONTROL",
"location": null,
"numPassingAsserts": 0,
"status": "failed",
"title": "CONTROL"
}
],
"skipped": false,
"leaks": false
},