https://github.com/retest/recheck-web-js
recheck for web apps – change comparison tool with Golden Masters and Git-like ignore syntax.
https://github.com/retest/recheck-web-js
assertion-framework golden-master regression regression-automation regression-testing snapshot-testing test-automation testing-framework testing-tools visual-regression-testing
Last synced: 13 days ago
JSON representation
recheck for web apps – change comparison tool with Golden Masters and Git-like ignore syntax.
- Host: GitHub
- URL: https://github.com/retest/recheck-web-js
- Owner: retest
- License: agpl-3.0
- Created: 2019-10-15T08:52:04.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2023-03-03T08:04:30.000Z (almost 3 years ago)
- Last Synced: 2025-07-03T00:38:49.203Z (7 months ago)
- Topics: assertion-framework, golden-master, regression, regression-automation, regression-testing, snapshot-testing, test-automation, testing-framework, testing-tools, visual-regression-testing
- Language: TypeScript
- Homepage: https://retest.de
- Size: 1.17 MB
- Stars: 3
- Watchers: 3
- Forks: 3
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# recheck-web-js
[](https://travis-ci.com/retest/recheck-web-js)
[](https://mvnrepository.com/artifact/org.webjars.npm/recheck-web-js)
[](https://github.com/retest/recheck/blob/master/LICENSE)
[](https://github.com/retest/recheck-web-js/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22)
[](https://retest.de/)
This is the JavaScript behind [recheck-web](https://github.com/retest/recheck-web) and the corresponding [Chrome extension](https://github.com/retest/recheck-web-chrome-extension). What it does is collect all attributes of all elements of the rendered DOM. This can then be collected by recheck-web or sent to retest.de.
## Installation
```sh
npm i recheck-web-js
```
## Usage
### TypeScript / es6
```js
import { mapElement } from "recheck-web-js";
var htmlNode = document.getElementsByTagName("html")[0];
var html = transform(htmlNode);
var allElements = mapElement(htmlNode, "//html[1]", {
"//html[1]" : html
});
console.log(allElements);
```
## Test
```sh
npm run test
```
## Release
The release of npm module and webjar is performed on travis. To trigger a
build update the version in npm files and create a tag with:
```sh
npm version patch && git push --tags
```
If you want to release a `minor` version use:
```sh
npm version minor && git push --tags
```