Skip to content

Commit

Permalink
Use harness as published to NPM
Browse files Browse the repository at this point in the history
  • Loading branch information
jugglinmike committed Feb 13, 2025
1 parent bda4778 commit 5125570
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 23 deletions.
14 changes: 2 additions & 12 deletions .github/workflows/nvda-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,8 @@ jobs:
path: "aria-at"
ref: ${{ inputs.aria_at_ref || 'master' }}

- name: Checkout aria-at-automation-harness
uses: actions/checkout@v4
with:
repository: "w3c/aria-at-automation-harness"
ref: "main"
path: "aria-at-automation-harness"
- name: Install the ARIA-AT Automation Harness package
run: npm install aria-at-automation-harness@"~0.0.1"

- name: Download nvda-portable zip
uses: robinraju/release-downloader@v1.9
Expand Down Expand Up @@ -166,12 +162,6 @@ jobs:
cd aria-at
npm run build
- name: "automation-harness: npm install"
shell: powershell
run: |
cd aria-at-automation-harness
npm install
- name: Log job state RUNNING
shell: powershell
if: inputs.status_url
Expand Down
11 changes: 2 additions & 9 deletions .github/workflows/voiceover-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,8 @@ jobs:
path: "aria-at"
ref: ${{ inputs.aria_at_ref || 'master' }}

- name: Checkout aria-at-automation-harness
uses: actions/checkout@v4
with:
repository: "w3c/aria-at-automation-harness"
path: "aria-at-automation-harness"
- name: Install the ARIA-AT Automation Harness package
run: npm install aria-at-automation-harness@"~0.0.1"

- name: "aria-at: npm install"
working-directory: aria-at
Expand All @@ -129,10 +126,6 @@ jobs:
working-directory: aria-at
run: npm run build

- name: "automation-harness: npm install"
working-directory: aria-at-automation-harness
run: npm install

- name: Start VoiceOver
run: "/System/Library/CoreServices/VoiceOver.app/Contents/MacOS/VoiceOverStarter"

Expand Down
2 changes: 1 addition & 1 deletion run-tester.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ $bmp.Save("$loglocation\test.png")

Write-Output "Launching automation-harness host"
$hostParams = "--debug"
node aria-at-automation-harness/bin/host.js run-plan --plan-workingdir aria-at/build/$env:ARIA_AT_WORK_DIR $env:ARIA_AT_TEST_PATTERN $hostParams --web-driver-url=http://127.0.0.1:4444 --at-driver-url=ws://127.0.0.1:3031/command --reference-hostname=127.0.0.1 --web-driver-browser=$env:BROWSER | Tee-Object -FilePath $loglocation\harness-run.log
node node_modules/.bin/aria-at-harness-host run-plan --plan-workingdir aria-at/build/$env:ARIA_AT_WORK_DIR $env:ARIA_AT_TEST_PATTERN $hostParams --web-driver-url=http://127.0.0.1:4444 --at-driver-url=ws://127.0.0.1:3031/command --reference-hostname=127.0.0.1 --web-driver-browser=$env:BROWSER | Tee-Object -FilePath $loglocation\harness-run.log

$graphics.CopyFromScreen($bounds.Location, [Drawing.Point]::Empty, $bounds.size)
$bmp.Save("$loglocation\test2.png")
Expand Down
2 changes: 1 addition & 1 deletion run-tester.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ case ${BROWSER} in
;;
esac

node aria-at-automation-harness/bin/host.js run-plan \
node_modules/.bin/aria-at-harness-host run-plan \
--plan-workingdir aria-at/build/${ARIA_AT_WORK_DIR} \
--debug \
--web-driver-url=${webdriver_url} \
Expand Down

0 comments on commit 5125570

Please sign in to comment.