Skip to content

Commit

Permalink
test: fixup HID test for ARM CI (#36172)
Browse files Browse the repository at this point in the history
(cherry picked from commit caf2806)

Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org>

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org>
  • Loading branch information
trop[bot] and jkleinsc committed Oct 27, 2022
1 parent b176c95 commit 69cb9c1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions spec-main/chromium-spec.ts
Expand Up @@ -2323,9 +2323,7 @@ describe('navigator.hid', () => {
} else {
expect(device).to.equal('');
}
if (process.arch === 'arm64' || process.arch === 'arm') {
// arm CI returns HID devices - this block may need to change if CI hardware changes.
expect(haveDevices).to.be.true();
if (haveDevices) {
// Verify that navigation will clear device permissions
const grantedDevices = await w.webContents.executeJavaScript('navigator.hid.getDevices()');
expect(grantedDevices).to.not.be.empty();
Expand Down

0 comments on commit 69cb9c1

Please sign in to comment.