45 Commits

Author SHA1 Message Date
Timothy Carambat e97a9e7e44 ARM64 support for Nut.js 2025-01-03 20:07:29 -08:00
Simon Hofmann 2376e3c5f9 Release/v4.2.0 (#580)
* Updated changelog

* Version bump to v4.2.0
2024-04-11 10:12:42 +02:00
Simon Hofmann 0e4db6e93e Release/v4.1.0 (#576)
* Removed un-used duplicated definition of window-element interface

* Updated changelog

* Version bump to v4.1.0
2024-04-04 07:44:10 +02:00
Simon Hofmann 3c59e6cf1d Release/v4.0.1 (#573)
* Disable GitHub package registry

* Updated changelog

* Re-enabled snapshot releases

* Version bump to v4.0.1
2024-03-29 10:50:20 +01:00
Simon Hofmann 49f146494e Bugfix/559/limit window region to main screen dimensions (#561)
* (#559) Adjust getRegion implementation

It’ll now cut off window regions at the borders of the main screen, avoiding errors due to out of bounds regions

* (#559) Moved window e2e test into dedicated e2e subpackage
2024-02-16 23:41:54 +01:00
Simon Hofmann e12635d8f2 Monorepo (#560)
* Monorepo build

* Added global gitignore

* Excluded .idea folder

* Added step to set up pnpm

* Added packageManager info to root level package.json

* Replaced npx with pnpx

* Fixed trailing comma

* NPM_TOKEN

* NPM_TOKEN

* NPM_TOKEN

* Added missing root level coverage:clean target

* Streamlined naming of samples

* Run coverage instead of test

* Updated lock file

* Updated sonar settings

* Updated sonar settings

* Aligned package versions, added script to bump versions on snapshot releases
2024-02-15 21:03:17 +01:00
Simon Hofmann aa4c0981bd (NT-67) Update E2E tests 2024-02-11 21:21:32 +01:00
Simon Hofmann 778cd7ff8f Bugfix/(nut tree/plugin ocr#25)/default confidence (#541)
* (nut-tree/plugin-ocr#25) Made the confidence value of a match request optional

* (nut-tree/plugin-ocr#25) Stop setting a default confidence value to not override other confidence value (e.g. the OCR one) with the explicit value of the match request

* (nut-tree/plugin-ocr#25) Removed redefinition of sleep and used import

* (nut-tree/plugin-ocr#25) Updated workflow definitions

* (nut-tree/plugin-ocr#25) Run npx playwright install before running tests

* (nut-tree/plugin-ocr#25) Specify working directory where to load the Electron main from in window tests

* (nut-tree/plugin-ocr#25) Increased Jest timeout for window tests to accommodate startup times, removed superfluous Docker stuf from CI runs on macOS and Windows, since tests would be running in Linux again which is just confusing in this place
2023-10-17 23:34:59 +02:00
Simon Hofmann dd5c3825b5 Switched to using playwright in e2e tests 2023-10-17 22:35:16 +02:00
Simon Hofmann db54f92bd8 Feature/500/color finder (#501)
* (#500) Define color finder interface

* (#500) Implement color finder interface + tests

* (#500) Add new query kind ColorQuery + test

* (#500) Introduce color finder in provider registry

* (#500) Introduce and export new query function `pixelWithColor`

* (#500) Make both match-request.class.ts and match-result.class.ts generic such that they can work with different types

* (#500) Provide types to now generic MatchResult

* (#500) Add support for new color finder and match results which return results other than Region

* (#500) Add test for the new color-finder queries in screen.class.spec.ts

* (#500) Add test for the new color-finder queries in screen.class.spec.ts

* (#500) Add test for the new color-finder queries in screen.class.spec.ts
2023-04-28 17:03:31 +00:00
Simon Hofmann dfa57d64a9 Restructure Electron E2E test 2022-11-07 23:34:57 +01:00
Simon Hofmann bc5e99c1f0 Feature/437/prettier (#438)
* (#437) Added prettier

* (#437) Initial formatting run

* (#437) Added husky and lint-staged to automate formatting
2022-10-16 20:28:20 +02:00
Simon Hofmann 93c455c9db Fix y offset for tests on macos-latest 2021-12-13 21:18:26 +01:00
Simon Hofmann 719f27e34c Feature/259/get screen pixel color (#325)
* (#259) Introduced ImageProcessor interface

* (#259) imageToJimp converter function

* (#259) RGBA dataclass

* (#259) Implement ImageProcessor and register the new provider

* (#259) Re-use imageToJimp and clean up tests

* (#259) Fixed import for Image which was previously importing from dist

* Maintenance/310/remove adapters (#311)

* (#310) Delete both adapters

* (#310) Migrate window.function to not use adapters

* (#310) Migrated window.class to not use adapters

* (#310) Migrated screen.class to not use adapters

* (#310) Migrated movement.function to not use adapters

* (#310) Migrated mouse.class to not use adapters

* (#310) Remove leftover notions of adapters in test description

* (#310) Fixed expected format when saving a screenshot to disk

* (#310) Migrated keyboard.class to not use adapters

* (#310) Migrated clipboard.class to not use adapters

* (#310) Migrated assert.class test to not use adapters

* (#310) Migrated all exported instances to not use adapters

* (#310) Removed mention of adapter from test description

* Added sponsors listing to README.md

* (#306) Update supported cpus to include Apple Silicon (arm64)

* Add https://github.com/stoefln to sponsors listing

* Feature/204/screen find image needles (#319)

* (#204) Enabled passing of Image data to Screen#find

* (#204) Updated screen tests

* (#204) Removed plugin test from main repo

* (#204) Removed plugin test from Docker test runs

* (#204) Introduced additional id property to images

* (#204) Adjusted tests and image usage to new id property

* (#204) Added helper function to make loading image resources easier

* (#204) Adapted toShow matcher to new find parameters

* (#204) Re-use loadImageResource function

* Feature/320/find accept promise (#322)

* (#320) Make find, and the functions re-using it, accept Promise<Image>

* (#320) Update toShow matcher accordingly

* (#320) Update tests

* (#321) Added `findAll` to Screen (#323)

* (#259) Add `colorAt` to screen class
2021-11-27 00:06:32 +01:00
Simon Hofmann 2af703a58d Feature/204/screen find image needles (#319)
* (#204) Enabled passing of Image data to Screen#find

* (#204) Updated screen tests

* (#204) Removed plugin test from main repo

* (#204) Removed plugin test from Docker test runs

* (#204) Introduced additional id property to images

* (#204) Adjusted tests and image usage to new id property

* (#204) Added helper function to make loading image resources easier

* (#204) Adapted toShow matcher to new find parameters

* (#204) Re-use loadImageResource function
2021-11-26 15:21:19 +00:00
Simon Hofmann 1ec9d62ec3 Feature/307/default imagereader imagewriter (#308)
* (#307) Add jimp dependencz

* (#307) Implement image reader

* (#307) Implement image writer

* (#307) Test data

* (#307) Register both providers

* (#307) Stick to BGR color format when loading images

* (#307) Expose imagereader and imagewriter through utility functions

* (#307) Updated tests to verify calls to Jimp

* (#307) Mock jimp in testcases using the pluginRegistry to avoid ReferenceErrors

* (#307) Mock jimp in e2e testcases to avoid ReferenceErrors
2021-11-05 10:59:50 +01:00
Simon Hofmann 60026518ff Feature/279/separate image matching (#298)
* (#279) Remove image matching provider code

* (#279) Remove image matching providers from registry

* (#279) Update vision adapter test

* (#279) Remove opencv4nodejs-prebuilt dependency

* (#279) Plugin e2e test

* (#279) Init plugin e2e test

* (#279) Align e2e package versions

* (#279) Fix resource path

* (#279) Add error info to output, formatting

* (#279) Run plugin test in Docker environment

* (#279) Export FileType enum

* (#279) Move screen e2e test to plugin e2e test subpackage since it requires the template-matcher package as well

* (#279) Move keyboard e2e test to plugin subpackage as well
2021-10-28 20:35:48 +02:00
dependabot[bot] 955d40abe3 Bump tar from 4.4.15 to 4.4.19 in /e2e/electron-test
Bumps [tar](https://github.com/npm/node-tar) from 4.4.15 to 4.4.19.
- [Release notes](https://github.com/npm/node-tar/releases)
- [Changelog](https://github.com/npm/node-tar/blob/main/CHANGELOG.md)
- [Commits](https://github.com/npm/node-tar/compare/v4.4.15...v4.4.19)

---
updated-dependencies:
- dependency-name: tar
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-01 00:32:51 +00:00
dependabot[bot] 43db3283fb Bump tar from 4.4.13 to 4.4.15 in /e2e/electron-test
Bumps [tar](https://github.com/npm/node-tar) from 4.4.13 to 4.4.15.
- [Release notes](https://github.com/npm/node-tar/releases)
- [Changelog](https://github.com/npm/node-tar/blob/main/CHANGELOG.md)
- [Commits](https://github.com/npm/node-tar/compare/v4.4.13...v4.4.15)

---
updated-dependencies:
- dependency-name: tar
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-04 04:43:52 +00:00
Simon Hofmann d11aa4e075 (#246) Refactor Electron test 2021-07-14 22:28:08 +02:00
Simon Hofmann d7fdf78e1b (#246) Debug Electron CI run 2021-07-14 22:17:07 +02:00
Simon Hofmann 1918c2ade1 (#246) Refined Electron e2e test run 2021-07-14 22:02:31 +02:00
Simon Hofmann 8392331a86 (#246) Re-added e2e assets 2021-07-14 21:53:28 +02:00
Simon Hofmann 5c5b02b345 (#246) Sync package-lock files 2021-07-14 21:47:47 +02:00
Simon Hofmann d9906d31e4 (#246) Updated directory name for window e2e test 2021-07-14 21:43:28 +02:00
Simon Hofmann b4620aeff9 (#246) Restructured e2e tests to better verify updated dependencies 2021-07-14 21:34:54 +02:00
Simon Hofmann 04459f7365 (#246) Hoisted devDependencies for e2e subpackage 2021-07-14 09:54:03 +02:00
Simon Hofmann 9c9a76ac27 (#246) Added dedicated test to verify builds against Electron 2021-07-14 09:49:55 +02:00
Simon Hofmann 2430f6ef21 Included node 16 in pipeline 2021-07-14 09:09:13 +02:00
Simon Hofmann 533bbd11c2 Fixing e2e demo 2021-06-01 22:23:12 +02:00
dependabot[bot] fdbf943edb Bump electron from 9.3.1 to 9.4.0 in /e2e/tests
Bumps [electron](https://github.com/electron/electron) from 9.3.1 to 9.4.0.
- [Release notes](https://github.com/electron/electron/releases)
- [Changelog](https://github.com/electron/electron/blob/master/docs/breaking-changes.md)
- [Commits](https://github.com/electron/electron/compare/v9.3.1...v9.4.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-01 09:20:18 +00:00
Sven Hettwer 88675be820 Bumped version to 1.6.0 2021-03-01 09:16:41 +01:00
Simon Hofmann d78659a4ab Merge pull request #187 from nut-tree/dependabot/npm_and_yarn/e2e/tests/electron-9.3.1
Bump electron from 9.1.2 to 9.3.1 in /e2e/tests
2021-01-24 23:04:37 +01:00
Simon Hofmann 2c712663d4 Increased Jest timeout for window tests to account for possible slowdown on macOS workers 2021-01-07 00:16:30 +01:00
Simon Hofmann 760c0bd2bc Added small timeouts to account for possibly slow window movement 2021-01-06 22:51:54 +01:00
Simon Hofmann 1309463056 Added small timeouts to account for possibly slow window movement 2021-01-06 22:47:00 +01:00
Simon Hofmann c5db847e2d Updated window integration tests to restart the test app before each run 2021-01-06 22:37:12 +01:00
Simon Hofmann 51388433d9 Modify resize test to verify consistent failure 2021-01-06 01:38:39 +01:00
Simon Hofmann 491cf79cf6 Updated window integration test to reflect limited default screen size of 640x480 in XVFB action 2020-12-30 20:17:17 +01:00
dependabot[bot] 117d2580d0 Bump electron from 9.1.2 to 9.3.1 in /e2e/tests
Bumps [electron](https://github.com/electron/electron) from 9.1.2 to 9.3.1.
- [Release notes](https://github.com/electron/electron/releases)
- [Changelog](https://github.com/electron/electron/blob/master/docs/breaking-changes.md)
- [Commits](https://github.com/electron/electron/compare/v9.1.2...v9.3.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-03 00:46:53 +00:00
Simon Hofmann e2352acdf2 (#5) Updated E2E test to renamed API 2020-08-12 16:42:06 +02:00
Simon Hofmann 82c6e20c48 (#5) Added E2E test subpackage 2020-08-12 09:49:28 +02:00
Simon Hofmann d1bb2086e0 (#70) Added new assets for e2e test 2019-06-05 21:43:05 +02:00
Simon Hofmann 1dfd8967a2 Updated e2e test image 2019-03-05 20:04:36 +01:00
Simon Hofmann d891710320 Updated e2e test assets 2019-03-05 19:27:42 +01:00