Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Commit

Permalink
[terra-functional-testing] Update node-resemble-js version to fix `St…
Browse files Browse the repository at this point in the history
…ream not writable` error. (#649)

* Update node-resemble-js version to fix `Stream not writable` error.

* Merge changelog.
  • Loading branch information
benbcai authored May 6, 2021
1 parent 129028f commit 1db98eb
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
9 changes: 6 additions & 3 deletions packages/terra-functional-testing/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@

## Unreleased

* Added
* Added useSeleniumStandaloneService option for using the standalone-chrome host instead of the selenium docker service when building in Jenkins.

* Fixed
* Update node-resemble-js version to fix `Stream not writable` error.

## 1.3.0 - (May 4, 2021)

* Fixed
* Update specPath in BaseCompare to replace `node_modules` with `tests/wdio`.

* Added
* Added useSeleniumStandaloneService option for using the standalone-chrome host instead of the selenium docker service when building in Jenkins.

## 1.2.0 - (April 23, 2021)

* Added
Expand Down
2 changes: 1 addition & 1 deletion packages/terra-functional-testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"homepage": "https://github.com/cerner/terra-toolkit#readme",
"dependencies": {
"@babel/runtime": "^7.11.2",
"@mirzazeyrek/node-resemble-js": "^1.2.1",
"@wdio/cli": "^6.1.4",
"@wdio/local-runner": "^6.1.4",
"@wdio/mocha-framework": "^6.1.0",
Expand All @@ -69,7 +70,6 @@
"lodash.isstring": "^4.0.1",
"lodash.isundefined": "^3.0.1",
"lodash.pickby": "^4.6.0",
"node-resemble-js": "0.2.0",
"uuid": "^3.0.0",
"webdriverio": "^6.5.0",
"webpack-dev-server": "^3.11.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const fs = require('fs-extra');
const resemble = require('node-resemble-js');
const resemble = require('@mirzazeyrek/node-resemble-js');
const lodashGet = require('lodash.get');
const { Logger } = require('@cerner/terra-cli');
const BaseCompare = require('./BaseCompare');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import path from 'path';
import fs from 'fs-extra';
import resemble from 'node-resemble-js';
import resemble from '@mirzazeyrek/node-resemble-js';

import BaseCompare from '../../../../../src/services/wdio-visual-regression-service/methods/BaseCompare';
import LocalCompare from '../../../../../src/services/wdio-visual-regression-service/methods/LocalCompare';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { assert } = require('chai');
const resemble = require('node-resemble-js');
const resemble = require('@mirzazeyrek/node-resemble-js');

function compareImages(image1, image2, misMatchPercentage = 0.2) {
return new Promise(resolve => {
Expand Down

0 comments on commit 1db98eb

Please sign in to comment.