Skip to content

Commit

Permalink
1.0.6 release
Browse files Browse the repository at this point in the history
  • Loading branch information
enact-bot committed Dec 22, 2023
2 parents f9c19f5 + c5eeb38 commit 476d848
Show file tree
Hide file tree
Showing 8 changed files with 10,523 additions and 4,702 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## [1.0.6] (December 22, 2023)

* Updated `chalk` version to `^5.3.0`.

## [1.0.5] (September 22, 2023)

* Updated `eslint-plugin-prettier` version to `^5.0.0`.
Expand Down
15,151 changes: 10,482 additions & 4,669 deletions npm-shrinkwrap.json

Large diffs are not rendered by default.

46 changes: 23 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@enact/ui-test-utils",
"version": "1.0.5",
"version": "1.0.6",
"description": "UI Testing for the Enact framework",
"repository": "https://github.com/enactjs/ui-test-utils",
"main": "index.js",
Expand All @@ -20,38 +20,38 @@
"access": "public"
},
"dependencies": {
"@wdio/cli": "^7.30.0",
"@wdio/dot-reporter": "^7.29.1",
"@wdio/local-runner": "^7.30.0",
"@wdio/mocha-framework": "^7.26.0",
"@wdio/selenium-standalone-service": "^7.30.0",
"@wdio/spec-reporter": "^7.29.1",
"@wdio/static-server-service": "^7.29.1",
"@wdio/cli": "^7.33.0",
"@wdio/dot-reporter": "^7.33.0",
"@wdio/local-runner": "^7.33.0",
"@wdio/mocha-framework": "^7.33.0",
"@wdio/selenium-standalone-service": "^7.33.0",
"@wdio/spec-reporter": "^7.33.0",
"@wdio/static-server-service": "^7.33.0",
"chai": "4.3.7",
"chalk": "^4.1.2",
"chalk": "^5.3.0",
"cross-spawn": "^7.0.3",
"dirty-chai": "2.0.1",
"expect-webdriverio": "^3.5.3",
"expect-webdriverio": "^3.6.0",
"fs-extra": "^11.1.1",
"minimist": "^1.2.8",
"query-string": "^7.1.1",
"ramda": "^0.29.0",
"query-string": "^7.1.3",
"ramda": "^0.29.1",
"readdirp": "^3.6.0",
"wdio-docker-service": "^3.2.1",
"wdio-image-comparison-service": "^5.0.3",
"webdriverio": "^7.30.0"
"webdriverio": "^7.33.0"
},
"devDependencies": {
"@babel/eslint-plugin": "^7.22.5",
"eslint": "^8.45.0",
"eslint-config-enact": "^4.1.6",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-enact": "^1.0.4",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jest": "^27.2.3",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-react": "^7.33.0",
"@babel/eslint-plugin": "^7.22.10",
"eslint": "^8.54.0",
"eslint-config-enact": "^4.1.8",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-enact": "^1.0.6",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-jest": "^27.6.0",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0"
}
}
4 changes: 2 additions & 2 deletions screenshot/utils/confHelpers.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const crypto = require('crypto'),
const cryptoModule = require('crypto'),
path = require('path'),
fs = require('fs');

Expand All @@ -21,7 +21,7 @@ function getScreenshotName (basePath) {
testName = testName.replace(/[/\\:?*"|<>]/g, '_');

// shorten the name with a little bit of leading context to help find the file manually if necessary
testName = testName.substring(0, 128) + '-' + crypto.createHash('md5').update(testName).digest('hex');
testName = testName.substring(0, 128) + '-' + cryptoModule.createHash('md5').update(testName).digest('hex');
let screenshotFileName = path.join(basePath, ...testNameParts, `${testName}.png`);
return screenshotFileName.replace(/ /g, '_');
};
Expand Down
7 changes: 4 additions & 3 deletions src/build-apps.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const path = require('path');

const chalk = require('chalk');
let chalk;
const spawn = require('cross-spawn');
const fs = require('fs-extra');
const readdirp = require('readdirp');
Expand All @@ -20,8 +20,9 @@ function buildApps (base) {
if (process.argv.includes('--skip-build')) return;
console.log('Building content:\n');

return Promise.resolve()
.then(() => {
return import('chalk')
.then(({default: _chalk}) => {
chalk = _chalk;
if (!process.argv.includes('--skip-enact')) {
epack({
file: {basename: 'Enact framework bundle', fullPath: 'framework'},
Expand Down
7 changes: 5 additions & 2 deletions ui/wdio.conf.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
const buildApps = require('../src/build-apps'),
fs = require('fs'),
chalk = require('chalk');
fs = require('fs');
let chalk;
import('chalk').then(({default: _chalk}) => {
chalk = _chalk;
});

const {configure} = require('../config/wdio.conf.js');

Expand Down
2 changes: 1 addition & 1 deletion utils/Page.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Page {
}

serializeParams (params) {
const queryObject = queryString.stringify(params);
const queryObject = queryString.stringify(params);

return queryObject;
}
Expand Down
4 changes: 2 additions & 2 deletions utils/runTest.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict';
const crypto = require('crypto');
const cryptoModule = require('crypto');
const parseArgs = require('minimist');

const args = parseArgs(process.argv);
Expand Down Expand Up @@ -55,7 +55,7 @@ const runTest = ({concurrency, filter, Page, testName, ...rest}) => {
// Replace problematic filenames. Windows is much more restrictive.
testCaseName = testCaseName.replace(/[/\\:?*"|<>]/g, '_');
// shorten the name with a little bit of leading context to help find the file manually if necessary
testCaseName = testCaseName.substring(0, 128) + '-' + crypto.createHash('md5').update(testCaseName).digest('hex');
testCaseName = testCaseName.substring(0, 128) + '-' + cryptoModule.createHash('md5').update(testCaseName).digest('hex');
const screenshotFileName = (component + '/' + testName + '/' + testCaseName);

const context = {params, component, testName, url: Page.url, fileName: screenshotFileName};
Expand Down

0 comments on commit 476d848

Please sign in to comment.