@enact/ui-test-utils 2.0.0-alpha.2 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enact/ui-test-utils",
3
- "version": "2.0.0-alpha.2",
3
+ "version": "2.0.0",
4
4
  "description": "UI Testing for the Enact framework",
5
5
  "repository": "https://github.com/enactjs/ui-test-utils",
6
6
  "main": "index.js",
@@ -41,7 +41,7 @@
41
41
  },
42
42
  "devDependencies": {
43
43
  "eslint": "^9.21.0",
44
- "eslint-config-enact": "^5.0.0-alpha.5",
44
+ "eslint-config-enact": "^5.0.0",
45
45
  "globals": "^15.14.0"
46
46
  },
47
47
  "overrides": {
@@ -1,6 +1,5 @@
1
1
  import css from './TestChooser.module.css';
2
2
 
3
- // eslint-disable-next-line enact/prop-types
4
3
  const TestChooser = ({metadata}) => {
5
4
  const tests = Object.keys(metadata);
6
5
 
@@ -30,7 +30,7 @@ exports.config = Object.assign(
30
30
  // maxInstances can get overwritten per capability. So if you have an in-house Selenium
31
31
  // grid with only 5 firefox instances available you can make sure that not more than
32
32
  // 5 instances get started at a time.
33
- maxInstances: 1,
33
+ 'wdio:maxInstances': 1,
34
34
  //
35
35
  browserName: 'chrome',
36
36
  /* WebdriverIO v8.14 and above downloads and uses the latest Chrome version when running tests.
package/ui/wdio.conf.js CHANGED
@@ -31,7 +31,7 @@ exports.config = configure({
31
31
  * @param {Number} result.duration duration of test
32
32
  * @param {Boolean} result.passed true if test has passed, otherwise false
33
33
  */
34
- afterTest: function (testCase, _context, {duration, passed}) {
34
+ afterTest: async function (testCase, _context, {duration, passed}) {
35
35
  if (duration > 2000) {
36
36
  console.log(chalk.yellow(`Long running test case: ${testCase.title}: ${duration}ms`));
37
37
  }
@@ -48,7 +48,7 @@ exports.config = configure({
48
48
  fs.mkdirSync(this.screenshotPath, {recursive: true}); // May only work recursively on Node 10.12+
49
49
  }
50
50
  // save screenshot
51
- browser.saveScreenshot(filePath);
51
+ await browser.saveScreenshot(filePath);
52
52
  console.log('\n\tScreenshot location:', filePath, '\n');
53
53
  },
54
54
  afterSuite: function (_suite) {
@@ -6,8 +6,11 @@ exports.config = Object.assign(
6
6
  config,
7
7
  {
8
8
  capabilities: [{
9
- maxInstances: 1,
10
-
9
+ // maxInstances can get overwritten per capability. So if you have an in-house Selenium
10
+ // grid with only 5 firefox instances available you can make sure that not more than
11
+ // 5 instances get started at a time.
12
+ 'wdio:maxInstances': 1,
13
+ //
11
14
  browserName: 'chrome',
12
15
  /* WebdriverIO v8.14 and above downloads and uses the latest Chrome version when running tests.
13
16
  We need to specify a browser version that match chromedriver version running in CI/CD environment to