Skip to content

Commit

Permalink
test: fixup HID test for ARM CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jkleinsc committed Oct 27, 2022
1 parent 58b2929 commit caf2806
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions spec/chromium-spec.ts
Expand Up @@ -2729,9 +2729,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 caf2806

Please sign in to comment.