test: fixup HID test for ARM CI (#36168)

(cherry picked from commit caf28066d6)
This commit is contained in:
John Kleinschmidt
2022-10-27 13:59:31 -04:00
committed by GitHub
parent 286b533ec1
commit 65c4cd7f19

View File

@@ -2727,9 +2727,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();