Skip to content

Commit

Permalink
1.0.10 release
Browse files Browse the repository at this point in the history
  • Loading branch information
enact-bot committed Oct 31, 2024
2 parents 640332b + 62fe0c9 commit 5646e3c
Show file tree
Hide file tree
Showing 5 changed files with 1,089 additions and 15,601 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dist: focal
dist: jammy
language: node_js
node_js:
- node
Expand Down
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# Change Log

## [1.0.10] (October 31, 2024)

* Updated dependencies.

## [1.0.9] (July 22, 2024)

* Updated Chrome driver url for version 114 or higher
* Updated Chrome driver url for version 114 or higher.

## [1.0.8] (June 11, 2024)

Expand Down
38 changes: 14 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ and must be configured as a `devDependency` of the UI library.
* `wdio.docker.conf.js` containing `module.exports = require('@enact/ui-test-utils/ui/wdio.docker.conf.js');`
* `wdio.tv.conf.js` containing `module.exports = require('@enact/ui-test-utils/ui/wdio.tv.conf.js');`

and `tests/screenshot`
* and `tests/screenshot`

* `wdio.conf.js` containing `module.exports = require('@enact/ui-test-utils/screenshot/wdio.conf.js');`
* `wdio.docker.conf.js` containing `module.exports = require('@enact/ui-test-utils/screenshot/wdio.docker.conf.js');`
Expand Down Expand Up @@ -60,16 +60,16 @@ TV_IP=10.0.1.1 npm run test-ui-tv
npm run test-ui -- --spec <pattern>
```

Example 1 - will execute tests for 'ExpandableInput'
Example 1 - will execute tests for 'Button'

```bash
npm run test-ui -- --spec ExpandableInput
npm run test-ui -- --spec Button
```

Example 2 - will execute tests for 'Input' component
Example 2 - will execute tests for 'InputField' component

```bash
npm run test-ui -- --spec /Input
npm run test-ui -- --spec /InputField
```

Note: `<pattern>` can also be a regex and may need to be in quotes to prevent expansion on the command
Expand Down Expand Up @@ -98,13 +98,13 @@ npm run test-ss -- --component Button
### Filtering Screenshot by Theme

```bash
npm run test-ss -- --spec MoonstoneLight-specs
npm run test-ss -- --spec Light-specs
```

You can combine theme and component filtering for more precise runs:

```bash
npm run test-ss -- --component CheckboxItem --spec Moonstone-specs
npm run test-ss -- --component CheckboxItem --spec Default-specs
```

### Filtering Screenshot by Title
Expand Down Expand Up @@ -165,7 +165,7 @@ open tests/screenshot/dist/failedTests.html

Images can be navigated using the keyboard arrow keys. Click on an image to zoom in. Click out of the image to zoom out.

In the output, the **test case** button opens the sample app with the parameters that produced the output. This requires that a server be running on port 5000. If you have globally installed the `serve` command with `npm install -g serve` you can start the server like this:
In the output, the **test case** button opens the sample app with the parameters that produced the output. This requires that a server be running on port 3000. If you have globally installed the `serve` command with `npm install -g serve` you can start the server like this:

```bash
serve tests/screenshot/dist
Expand All @@ -182,16 +182,6 @@ the Enact version or test apps will not be picked up.
npm run test-ui -- --spec /Input --skip-build
```

### Re-pack the apps without running the tests

To re-pack just the tests, without rebuilding Enact or running the tests, use `--pack-tests`. This
is primarily useful when using `serve dist` (See **Loading sample apps in a browser** below) to view
test apps in the browser.

```bash
npm run test-ui -- --pack-tests
```

## Advanced Usage

### Setting the Number of Concurrent Instances
Expand Down Expand Up @@ -230,7 +220,7 @@ npm run test-ui -- --visible --spec /Input

### Loading sample apps in a browser

This requires that a server be running on port 5000. If you have globally installed the `serve`
This requires that a server be running on port 3000. If you have globally installed the `serve`
command with `npm install -g serve` you can start the server like this:

```bash
Expand All @@ -241,27 +231,27 @@ To open a specific test app, open the URL path for the test. The path will matc
source file for the app. For example, to open the `VirtualList` test app, navigate to:

```none
http://localhost:5000/VirtualList-View/
http://localhost:3000/VirtualList-View/
```

### Viewing screenshot tests in the browser

Navigate to a URL using the component name and test case number. Change 'Moonstone-View' to the name of the view appropriate for your library.
Navigate to a URL using the component name and test case number. Change 'Sandstone-View' to the name of the view appropriate for your library.

An index page will be served when no component is specified. Select a test from the list to open it.

```none
localhost:5000/Moonstone-View/
localhost:3000/Sandstone-View/
```

You can go directly to a test by specifying the component name and test ID number:

```none
localhost:5000/Moonstone-View/?component=<component name>&testId=<number of the test>
localhost:3000/Sandstone-View/?component=<component name>&testId=<number of the test>
```

Example:

```none
localhost:5000/Moonstone-View/?component=RadioItem&testId=10
localhost:3000/Sandstone-View/?component=RadioItem&testId=10
```
Loading

0 comments on commit 5646e3c

Please sign in to comment.