Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

My commit #5

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
PP
baranovdmitriy87 committed Oct 18, 2024
commit ce3048b45ca0288850d2254169ee0956f632454a
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
510 changes: 510 additions & 0 deletions backstop_data/bitmaps_test/20241018-193314/report.json

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
510 changes: 510 additions & 0 deletions backstop_data/html_report/config.js

Large diffs are not rendered by default.

1,843 changes: 1,843 additions & 0 deletions backstop_data/html_report/diff.js

Large diffs are not rendered by default.

340 changes: 340 additions & 0 deletions backstop_data/html_report/diverged.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,340 @@
'use strict';
const noop = function (){};
let LCS_DIFF_ARRAY_METHOD = undefined;
// debugger
if (typeof require !== 'undefined') {
LCS_DIFF_ARRAY_METHOD = require('diff').diffArrays;
} else {
try {
LCS_DIFF_ARRAY_METHOD = JsDiff.diffArrays;
} catch(err) {
console.error(err);
}
}

const rowSpread = 1;

const spread = 50; // range of adjacent pixels to aggregate when calculating diff
const IS_ADDED_WORD = '0_255_0_255';
const IS_REMOVED_WORD = '255_0_0_255';
const IS_ADDED_AND_REMOVED_WORD = '0_255_255_255';
const IS_SAME_WORD = '';
const OPACITY = '40'; // 0-255 range

/**
* Applies Longest-Common-Subsequence-Diff algorithm to imageData formatted arrays
*
* @param {Uint8ClampedArray} [reference] baseline image
* @param {Uint8ClampedArray} [test] test image
*
* @returns {Uint8ClampedArray} diff image
*
*/
if (typeof module !== 'undefined') {
module.exports = diverged;
}

function diverged(reference, test, h, w) {
console.time("diverged_total_time");

const spread = Math.floor(h / 80); //override

console.log('spread:', spread);

console.time("imgDataToWords");
const img1wordArr = imgDataToWords(reference);
const img2wordArr = imgDataToWords(test);
console.timeEnd("imgDataToWords");

console.time("imgDataWordArrToColsAndRows");
let cols_rows_ref = imgDataWordArrToColsAndRows(img1wordArr, h, w);
let cols_rows_test = imgDataWordArrToColsAndRows(img2wordArr, h, w);
console.timeEnd("imgDataWordArrToColsAndRows");

console.time("groupAdjacent");
const columnRef = groupAdjacent(cols_rows_ref.columns, spread, h, w);
const columnTest = groupAdjacent(cols_rows_test.columns, spread, h, w);
console.timeEnd("groupAdjacent");

console.time("columnDiffRaw");
const columnDiffRaw = diffArr(columnRef, columnTest, h, w);
console.timeEnd("columnDiffRaw");

console.time("reduceColumnDiffRaw");
const reducedColumnDiff = reduceColumnDiffRaw(columnDiffRaw, h, w);
console.timeEnd("reduceColumnDiffRaw");
// console.log("reducedColumnDiff>>>", reducedColumnDiff);

console.time("unGroupAdjacent");
const expandedColumns = ungroupAdjacent(reducedColumnDiff, spread, cols_rows_test.columns, h, w);
console.timeEnd("unGroupAdjacent");

console.time("columnWordDataToImgDataFormatAsWords");
const convertedColumnDiffImgData = columnWordDataToImgDataFormatAsWords(expandedColumns, h, w);
console.timeEnd("columnWordDataToImgDataFormatAsWords");
// console.log("convertedColumnDiffImgData>>>", convertedColumnDiffImgData);

console.time("imgDataWordsToClampedImgData");
const imgDataArr = convertImgDataWordsToClampedImgData(convertedColumnDiffImgData);
console.timeEnd("imgDataWordsToClampedImgData");
// console.log("imgDataArr>>>", imgDataArr);

console.timeEnd("diverged_total_time");
return imgDataArr;
}

/**
* ========= HELPERS ========
*/

function columnWordDataToImgDataFormatAsWords(columns, h, w) {
const imgDataWordsLength = w * h;

let convertedArr = new Array(imgDataWordsLength);
for (var i = 0; i < imgDataWordsLength; i++) {
const {column, depth} = serialToColumnMap(i, h, w);
convertedArr[i] = columns[column][depth];
}
return convertedArr;
}

function convertImgDataWordsToClampedImgData(wordsArr) {
let convertedArr = new Uint8ClampedArray(wordsArr.length * 4);
for (var i = 0; i < wordsArr.length; i++) {
const convertedOffset = i * 4;
const segments = wordsArr[i].split('_');
convertedArr[convertedOffset] = segments[0];
convertedArr[convertedOffset+1] = segments[1];
convertedArr[convertedOffset+2] = segments[2];
convertedArr[convertedOffset+3] = segments[3];
}
return convertedArr;
}

function reduceColumnDiffRaw(columnDiffs, h, w) {
let reducedColumns = new Array(columnDiffs.length);
for (let columnIndex = 0; columnIndex < columnDiffs.length; columnIndex++) {
const columnDiff = columnDiffs[columnIndex];
let resultColumn = new Array();
let removedCounter = 0;
let resultClass = '';
let segment = [];
let debug = false;

for (let depthIndex = 0; depthIndex < columnDiff.length; depthIndex++) {
let segmentLength = 0;

// Categorize the current segment
if (columnDiff[depthIndex].removed) {
segmentLength = columnDiff[depthIndex].count;
removedCounter += segmentLength;
resultClass = IS_REMOVED_WORD;
} else {
if (columnDiff[depthIndex].added) {
if (removedCounter) {
resultClass = IS_ADDED_AND_REMOVED_WORD;
} else {
resultClass = IS_ADDED_WORD;
}
} else {
resultClass = IS_SAME_WORD;
}

segmentLength = columnDiff[depthIndex].count;

if (removedCounter > 0) {
if (segmentLength > removedCounter) {
segmentLength -= removedCounter;
removedCounter = 0;
} else {
removedCounter -= segmentLength;
segmentLength = 0;
}
}
}

// Limit segmentLength to total length of column
if (!segmentLength) {
continue;
} else {
segmentLength = Math.min(segmentLength, h - resultColumn.length);
}

const printSampleMap = false;
if (!printSampleMap || resultClass !== IS_SAME_WORD){
segment = new Array(segmentLength).fill(resultClass);
} else {
// reduced resolution image
segment = columnDiff[depthIndex].value.slice(0,segmentLength).map((value, i) => {
if (/|/.test(value)) {
return value.split('|')[0];
}
return value;
});
}


resultColumn = resultColumn.concat(segment);

if (resultColumn.length > h) {
console.log('WARNING -- this value is out of bounds!')
}
}

reducedColumns[columnIndex] = resultColumn;
}

return reducedColumns;
}

function diffArr(refArr, testArr, h, w) {
let rawResultArr = [];
for (let i = 0; i < refArr.length; i++) {
rawResultArr.push(LCS_DIFF_ARRAY_METHOD(refArr[i], testArr[i]));
}
return rawResultArr;
}

function groupAdjacent(columns, spread, h, w) {
if (!spread) {
return columns;
}

/**
* [getAdjacentArrayBounds retuns existing adjacent lower and upper column bounds]
* @param {[int]} pointer [current index]
* @param {[int]} spread [distance from index]
* @param {[int]} length [total length]
* @return {[array]} [0] lower bound, [1] upper bound
*/
function getAdjacentArrayBounds(pointer, spread, length) {
return [
// Math.max(0, pointer - spread),
Math.max(0, pointer),
Math.min(length - 1, pointer + spread)
]
}

function getInterpolatedSequence(beginning, end) {
const interpolated = [];
for (let step = beginning; step <= end; step++) {
interpolated.push(step);
}
return interpolated;
}

function getCompositeColumnDepthValues(columns, sequence, depth) {
return sequence.reduce((acc, column) => {
return acc.concat(columns[column][depth]);
}, [])
}

function getCompositeRowIndexValues(groupedColumns, sequence, column) {
return sequence.reduce((acc, depth) => {
return acc.concat(groupedColumns[column][depth]);
}, [])
}

const groupedColumns = new Array();
let columnPointer = 0;
while (columnPointer < w) {
const adjacentColumnBounds = getAdjacentArrayBounds(columnPointer, spread, w);
const interpolatedColumns = getInterpolatedSequence(...adjacentColumnBounds);

const columnComposite = new Array();
for (var depth = 0; depth < h; depth++) {
columnComposite[depth] = getCompositeColumnDepthValues(columns, interpolatedColumns, depth).join('|');
}
groupedColumns.push(columnComposite);
columnPointer += spread;
}

const groupedRows = new Array();
if (rowSpread > 1) {
for (var index = 0; index < groupedColumns.length; index++) {
const rowComposite = new Array();
let depthPointer = 0;
while (depthPointer < h) {
const adjacentRowBounds = getAdjacentArrayBounds(depthPointer, rowSpread, h);
const interpolatedRows = getInterpolatedSequence(...adjacentRowBounds);
rowComposite.push(getCompositeRowIndexValues(groupedColumns, interpolatedRows, index).join(','));
depthPointer += rowSpread;
}
groupedRows[index] = rowComposite;
}
}
return groupedRows.length ? groupedRows : groupedColumns ;
}

function ungroupAdjacent(grouped, spread, columnUnderlay, h, w) {
if (!spread) {
return grouped;
}

function mapUngroupedColumnIndexToGroupedIndex(index, spread) {
return Math.floor(index / spread);
}

// expand columns
const ungrouped = new Array(w);
for (let index = 0; index < w; index++) {
if (!ungrouped[index]) {
ungrouped[index] = new Array(h);
}

const groupedIndexMap = mapUngroupedColumnIndexToGroupedIndex(index, spread);
for (let depth = 0; depth < h; depth++) {
const groupedDepthMap = rowSpread > 1 ? mapUngroupedColumnIndexToGroupedIndex(depth, rowSpread) : depth;
const value = grouped[groupedIndexMap][groupedDepthMap].split('|')[0];
ungrouped[index][depth] = value ? value : columnUnderlay[index][depth].replace(/\d+$/, OPACITY);
}
}

return ungrouped
}



function imgDataWordArrToColsAndRows(arr, h, w) {
let columns = new Array(w);
let rows = new Array(h);

for (var i = 0; i < arr.length; i++) {
const word = arr[i];

var {column, depth} = serialToColumnMap(i, h, w);
if (!columns[column]) {
columns[column] = new Array(h);
}
columns[column][depth] = word;

var {row, index} = serialToRowMap(i, h, w);
if (!rows[row]) {
rows[row] = new Array(w);
}
rows[row][index] = word;
}
return {columns, rows}
}

function serialToColumnMap(index, h, w) {
return {
column: index % w,
depth: Math.floor(index / w)
}
}

function serialToRowMap(index, h, w) {
return {
row: Math.floor(index / w),
index: index % w
}
}

function imgDataToWords(arr) {
let result = [];
for (let i = 0; i < arr.length-1; i += 4) {
result.push(`${arr[i]}_${arr[i+1]}_${arr[i+2]}_${arr[i+3]}`)
}
return result;
}
6 changes: 6 additions & 0 deletions backstop_data/html_report/divergedWorker.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
importScripts('diff.js');
importScripts('diverged.js');
self.addEventListener('message', function(e) {
self.postMessage(diverged(...e.data.divergedInput));
self.close();
}, false);
49 changes: 49 additions & 0 deletions backstop_data/html_report/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<!-- Disable Cache -->
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="0">

<title>BackstopJS Report</title>

<style>
@font-face {
font-family: 'latoregular';
src: url('./assets/fonts/lato-regular-webfont.woff2') format('woff2'),
url('./assets/fonts/lato-regular-webfont.woff') format('woff');
font-weight: 400;
font-style: normal;
}
@font-face {
font-family: 'latobold';
src: url('./assets/fonts/lato-bold-webfont.woff2') format('woff2'),
url('./assets/fonts/lato-bold-webfont.woff') format('woff');
font-weight: 700;
font-style: normal;
}

.ReactModal__Body--open {
overflow: hidden;
}
.ReactModal__Body--open .header {
display: none;
}

</style>
</head>
<body style="background-color: #E2E7EA">
<div id="root">

</div>
<script>
function report (report) { // eslint-disable-line no-unused-vars
window.tests = report;
}
</script>
<script src="config.js"></script>
<script src="index_bundle.js"></script>
</body>
</html>
2 changes: 2 additions & 0 deletions backstop_data/html_report/index_bundle.js

Large diffs are not rendered by default.

59 changes: 59 additions & 0 deletions backstop_data/html_report/index_bundle.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
/*!
Copyright (c) 2015 Jed Watson.
Based on code that is Copyright 2013-2015, Facebook, Inc.
All rights reserved.
*/

/*!
* Adapted from jQuery UI core
*
* http://jqueryui.com
*
* Copyright 2014 jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
* http://api.jqueryui.com/category/ui-core/
*/

/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */

/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* use-sync-external-store-with-selector.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
546 changes: 546 additions & 0 deletions backstop_data/json_report/jsonReport.json

Large diffs are not rendered by default.

39 changes: 17 additions & 22 deletions source/index.html
Original file line number Diff line number Diff line change
@@ -52,23 +52,18 @@
</a>
</li>
</ul>
</div>
</nav>
<div class="user-menu__wrapper">
<ul class="user-menu">
<li class="user-menu__item">
<a class="user-menu__link user-menu__enter" href="#">
<span class="user-menu__enter-text user-menu__enter--hidden">Войти</span>
<!-- <svg class="user__icon" width="16" height="30px">
<use xlink:href="icons/header/stack.svg#header_enter"></use>
</svg> -->
</a>
</li>
<li class="user-menu__item">
<a class="user-menu__link user-menu__cart" href="#">
<span class="user-menu__cart-text user-menu__cart--hidden">Корзина</span>
<!-- <svg class="user__icon" width="24" height="19">
<use xlink:href="icons/header/stack.svg#header_cart"></use>
</svg> -->
</a>
</li>
</ul>
@@ -128,37 +123,37 @@ <h2 class="features__title">Главные причины выбрать Drink2G
<li class="features__item">
<span class="features__icon features__icon--speed"></span>
<!-- <div class="features__grid-tablet"> -->
<h3 class="features__caption">Скорость</h3>
<p class="features__description">
Готовый напиток всегда под рукой — просто открой банку
</p>
<h3 class="features__caption">Скорость</h3>
<p class="features__description">
Готовый напиток всегда под рукой — просто открой банку
</p>
<!-- </div> -->
</li>
<li class="features__item">
<span class="features__icon features__icon--comfort"></span>
<!-- <div class="features__grid-tablet"> -->
<h3 class="features__caption">Удобство</h3>
<p class="features__description">
Легко помещается и в карман, и в маленькую сумочку
</p>
<h3 class="features__caption">Удобство</h3>
<p class="features__description">
Легко помещается и в карман, и в маленькую сумочку
</p>
<!-- </div> -->
</li>
<li class="features__item">
<span class="features__icon features__icon--energy"></span>
<!-- <div class="features__grid-tablet"> -->
<h3 class="features__caption">Бодрость</h3>
<p class="features__description">
Сбалансированная доза кофеина даст мощный заряд энергии
</p>
<h3 class="features__caption">Бодрость</h3>
<p class="features__description">
Сбалансированная доза кофеина даст мощный заряд энергии
</p>
<!-- </div> -->
</li>
<li class="features__item">
<span class="features__icon features__icon--eco"></span>
<!-- <div class="features__grid-tablet"> -->
<h3 class="features__caption">Экологичность</h3>
<p class="features__description">
Вся упаковка сделана из перерабатываемых материалов
</p>
<h3 class="features__caption">Экологичность</h3>
<p class="features__description">
Вся упаковка сделана из перерабатываемых материалов
</p>
<!-- </div> -->
</li>
</ul>
2 changes: 1 addition & 1 deletion source/styles/blocks/header.scss
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@

@media (min-width: $desktop-width) {
width: 1440px;
padding: 20px 40px;
padding: 0 40px;
}
}

5 changes: 3 additions & 2 deletions source/styles/blocks/main-nav.scss
Original file line number Diff line number Diff line change
@@ -12,9 +12,10 @@
@include list-reset;

@media (min-width: $tablet-width) {
margin: 0 auto;
margin: 0 0 0 19px;
display: flex;
width: 400px;
flex-wrap: wrap;
width: 410px;
align-items: center;
justify-content: space-between;
}
2 changes: 1 addition & 1 deletion source/styles/blocks/site-list.scss
Original file line number Diff line number Diff line change
@@ -72,7 +72,7 @@
@media (min-width: $tablet-width) {
content: "";
position: absolute;
bottom: 4px;
bottom: 0;
right: 0;
left: 0;
height: 2px;
16 changes: 12 additions & 4 deletions source/styles/blocks/user-menu.scss
Original file line number Diff line number Diff line change
@@ -28,22 +28,22 @@

.user-menu__item {
display: flex;
justify-content: center;
width: 60px;
height: 60px;

@media (min-width: $tablet-width) {}
@media (min-width: $tablet-width) {

justify-content: center;
}

@media (min-width: $desktop-width) {
min-width: 120px;
}
}

.user-menu__link {
width: 100%;
display: flex;
align-items: center;
// justify-content: center;
}

.user-menu__cart--hidden,
@@ -56,13 +56,21 @@
}

.user-menu__enter {
@media (min-width: $desktop-width) {
min-width: 134px;
}

&::before {
@include user-menu-base-styles;
mask-image: url("../../icons/header/enter.svg");
}
}

.user-menu__cart {
@media (min-width: $desktop-width) {
min-width: 110px;
}

&::before {
@include user-menu-base-styles;
mask-image: url("../../icons/header/cart.svg");
54 changes: 54 additions & 0 deletions test-config/backstop-test-05.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"id": "drink2go test-05",
"viewports": [
{
"label": "desktop",
"width": 1440,
"height": 800
},
{
"label": "tablet",
"width": 768,
"height": 800
},
{
"label": "mobile",
"width": 320,
"height": 800
}
],
"resembleOutputOptions": {
"ignoreAntialiasing": true,
"usePreciseMatching": false,
"scaleToSameSize": true
},
"onReadyScript": "onReady.js",
"scenarios": [],
"fileNameTemplate": "{configId}_{scenarioLabel}_{selectorIndex}_{viewportLabel}",
"paths": {
"bitmaps_reference": "backstop_data/bitmaps_reference/test-05",
"bitmaps_test": "backstop_data/bitmaps_test",
"engine_scripts": "engine_scripts",
"html_report": "backstop_data/html_report"
},
"report": [
"browser"
],
"engine": "puppeteer",
"engineOptions": {
"args": [
"--no-sandbox"
],
"gotoParameters": {
"waitUntil": [
"load",
"networkidle0"
],
"timeout": 20000
}
},
"asyncCaptureLimit": 10,
"asyncCompareLimit": 50,
"debug": false,
"debugWindow": false
}
39 changes: 39 additions & 0 deletions test-config/backstop-test-07.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"id": "drink2go test-07",
"viewports": [
{
"label": "desktop",
"width": 800,
"height": 600
}
],
"onReadyScript": "onReady.js",
"scenarios": [],
"fileNameTemplate": "{configId}_{scenarioLabel}_{viewportLabel}",
"paths": {
"bitmaps_reference": "backstop_data/bitmaps_reference/test-07",
"bitmaps_test": "backstop_data/bitmaps_test",
"engine_scripts": "engine_scripts",
"html_report": "backstop_data/html_report"
},
"report": [
"browser"
],
"engine": "puppeteer",
"engineOptions": {
"args": [
"--no-sandbox"
],
"gotoParameters": {
"waitUntil": [
"load",
"networkidle0"
],
"timeout": 20000
}
},
"asyncCaptureLimit": 10,
"asyncCompareLimit": 50,
"debug": false,
"debugWindow": false
}
44 changes: 44 additions & 0 deletions test-config/backstop-test-08.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"id": "drink2go test-08",
"viewports": [
{
"label": "desktop",
"width": 1440,
"height": 800
}
],
"resembleOutputOptions": {
"ignoreAntialiasing": true,
"usePreciseMatching": false
},
"onReadyScript": "onReady.js",
"onBeforeScript": "jsDisable.js",
"scenarios": [],
"fileNameTemplate": "{configId}_{scenarioLabel}__{viewportLabel}",
"paths": {
"bitmaps_reference": "backstop_data/bitmaps_reference/test-08",
"bitmaps_test": "backstop_data/bitmaps_test",
"engine_scripts": "engine_scripts",
"html_report": "backstop_data/html_report"
},
"report": [
"browser"
],
"engine": "puppeteer",
"engineOptions": {
"args": [
"--no-sandbox"
],
"gotoParameters": {
"waitUntil": [
"load",
"networkidle0"
],
"timeout": 20000
}
},
"asyncCaptureLimit": 10,
"asyncCompareLimit": 50,
"debug": false,
"debugWindow": false
}