From d261a9890d0a031f928a43f8e6d80b5317961b96 Mon Sep 17 00:00:00 2001 From: Thijs Louisse Date: Tue, 19 Nov 2024 00:33:52 +0100 Subject: [PATCH] wip --- .github/workflows/guidepup.yml | 17 +++++ guidepup.test.cjs | 12 ++++ package-lock.json | 114 ++++++++++++++++++++++++++++++++- package.json | 1 + 4 files changed, 141 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/guidepup.yml create mode 100644 guidepup.test.cjs diff --git a/.github/workflows/guidepup.yml b/.github/workflows/guidepup.yml new file mode 100644 index 000000000..b02bd2b5c --- /dev/null +++ b/.github/workflows/guidepup.yml @@ -0,0 +1,17 @@ +name: SR automation + +# on: +# push: +# branches: +# - master + +jobs: + voiceover: + name: SR auto + runs-on: macos-latest + steps: + - name: Setup Environment + uses: guidepup/setup-action + + - name: Run test + run: node guidepup.test.cjs diff --git a/guidepup.test.cjs b/guidepup.test.cjs new file mode 100644 index 000000000..6102419ee --- /dev/null +++ b/guidepup.test.cjs @@ -0,0 +1,12 @@ +const { voiceOver } = require('@guidepup/guidepup'); + +(async () => { + // Start VoiceOver. + await voiceOver.start(); + + // Move to the next item. + await voiceOver.next(); + + // Stop VoiceOver. + await voiceOver.stop(); +})(); diff --git a/package-lock.json b/package-lock.json index d2dc29222..7a733f677 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,6 +17,7 @@ "@changesets/cli": "^2.27.9", "@custom-elements-manifest/analyzer": "^0.10.3", "@custom-elements-manifest/to-markdown": "^0.1.0", + "@guidepup/guidepup": "^0.24.0", "@lit-labs/testing": "^0.2.5", "@open-wc/building-rollup": "^2.2.3", "@open-wc/eslint-config": "^12.0.3", @@ -2612,6 +2613,17 @@ "dev": true, "license": "MIT" }, + "node_modules/@guidepup/guidepup": { + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@guidepup/guidepup/-/guidepup-0.24.0.tgz", + "integrity": "sha512-bbbcJPbZ01Zkxi+L51R4iI7iZ3b2ax3SocqAF0hCgS+Vax6TOft5eZJ37QWRSQM6Xis6OOEVlRhzpM2807WyiA==", + "dev": true, + "dependencies": { + "regedit": "5.1.2", + "semver": "^7.3.8", + "shelljs": "^0.8.5" + } + }, "node_modules/@hapi/bourne": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/@hapi/bourne/-/bourne-3.0.0.tgz", @@ -15090,6 +15102,12 @@ ], "license": "BSD-3-Clause" }, + "node_modules/if-async": { + "version": "3.7.4", + "resolved": "https://registry.npmjs.org/if-async/-/if-async-3.7.4.tgz", + "integrity": "sha512-BFEH2mZyeF6KZKaKLVPZ0wMjIiWOdjvZ7zbx8ENec0qfZhJwKFbX/4jKM5LTKyJEc/GOqUKiiJ2IFKT9yWrZqA==", + "dev": true + }, "node_modules/ignore": { "version": "5.3.2", "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", @@ -15252,6 +15270,15 @@ "node": ">= 0.4" } }, + "node_modules/interpret": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz", + "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==", + "dev": true, + "engines": { + "node": ">= 0.10" + } + }, "node_modules/intersection-observer": { "version": "0.12.2", "resolved": "https://registry.npmjs.org/intersection-observer/-/intersection-observer-0.12.2.tgz", @@ -22766,6 +22793,18 @@ "node": ">=8.10.0" } }, + "node_modules/rechoir": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", + "integrity": "sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==", + "dev": true, + "dependencies": { + "resolve": "^1.1.6" + }, + "engines": { + "node": ">= 0.10" + } + }, "node_modules/recursive-copy": { "version": "2.0.14", "resolved": "https://registry.npmjs.org/recursive-copy/-/recursive-copy-2.0.14.tgz", @@ -22841,6 +22880,18 @@ "node": ">=6" } }, + "node_modules/regedit": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/regedit/-/regedit-5.1.2.tgz", + "integrity": "sha512-pQpWqO/I40bMNoMO9kTQx3e5iK542kYcB/Z8X3Y7Hcri6ydc4KZ9ByUsEWFkBRMcwo+2irHuNK5s+pMGPr6VPw==", + "dev": true, + "dependencies": { + "debug": "^4.1.0", + "if-async": "^3.7.4", + "stream-slicer": "0.0.6", + "through2": "^0.6.3" + } + }, "node_modules/regenerate": { "version": "1.4.2", "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", @@ -24667,6 +24718,23 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/shelljs": { + "version": "0.8.5", + "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.5.tgz", + "integrity": "sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==", + "dev": true, + "dependencies": { + "glob": "^7.0.0", + "interpret": "^1.0.0", + "rechoir": "^0.6.2" + }, + "bin": { + "shjs": "bin/shjs" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/short-hash": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/short-hash/-/short-hash-1.0.0.tgz", @@ -25266,6 +25334,12 @@ "duplexer": "~0.1.1" } }, + "node_modules/stream-slicer": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/stream-slicer/-/stream-slicer-0.0.6.tgz", + "integrity": "sha512-QsY0LbweYE5L+e+iBQgtkM5WUIf7+kCMA/m2VULv8rEEDDnlDPsPvOHH4nli6uaZOKQEt64u65h0l/eeZo7lCw==", + "dev": true + }, "node_modules/stream-throttle": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/stream-throttle/-/stream-throttle-0.1.3.tgz", @@ -25862,6 +25936,40 @@ "dev": true, "license": "MIT" }, + "node_modules/through2": { + "version": "0.6.5", + "resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz", + "integrity": "sha512-RkK/CCESdTKQZHdmKICijdKKsCRVHs5KsLZ6pACAmF/1GPUQhonHSXWNERctxEp7RmvjdNbZTL5z9V7nSCXKcg==", + "dev": true, + "dependencies": { + "readable-stream": ">=1.0.33-1 <1.1.0-0", + "xtend": ">=4.0.0 <4.1.0-0" + } + }, + "node_modules/through2/node_modules/isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==", + "dev": true + }, + "node_modules/through2/node_modules/readable-stream": { + "version": "1.0.34", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", + "integrity": "sha512-ok1qVCJuRkNmvebYikljxJA/UEsKwLl2nI1OmaqAu4/UE+h0wKCHok4XkL/gvi39OacXvw59RJUOFUkDib2rHg==", + "dev": true, + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", + "isarray": "0.0.1", + "string_decoder": "~0.10.x" + } + }, + "node_modules/through2/node_modules/string_decoder": { + "version": "0.10.31", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==", + "dev": true + }, "node_modules/time-require": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/time-require/-/time-require-0.1.2.tgz", @@ -28337,7 +28445,7 @@ "license": "MIT" }, "packages-node/providence-analytics": { - "version": "0.17.0", + "version": "0.17.2", "license": "MIT", "dependencies": { "@babel/traverse": "^7.25.7", @@ -28587,7 +28695,7 @@ }, "packages/ajax": { "name": "@lion/ajax", - "version": "2.0.2", + "version": "2.1.0", "license": "MIT" }, "packages/singleton-manager": { @@ -28596,7 +28704,7 @@ }, "packages/ui": { "name": "@lion/ui", - "version": "0.8.3", + "version": "0.8.6", "license": "MIT", "dependencies": { "@bundled-es-modules/message-format": "^6.2.4", diff --git a/package.json b/package.json index e8e07a504..209d9a553 100644 --- a/package.json +++ b/package.json @@ -45,6 +45,7 @@ "@changesets/cli": "^2.27.9", "@custom-elements-manifest/analyzer": "^0.10.3", "@custom-elements-manifest/to-markdown": "^0.1.0", + "@guidepup/guidepup": "^0.24.0", "@lit-labs/testing": "^0.2.5", "@open-wc/building-rollup": "^2.2.3", "@open-wc/eslint-config": "^12.0.3",