Browse Source

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

(cherry picked from commit caf28066d66bbfdca992343bef34f5cfe3336bed)

Co-authored-by: John Kleinschmidt <[email protected]>

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: John Kleinschmidt <[email protected]>
trop[bot] 2 years ago
parent
commit
7ce8eaf7f3
1 changed files with 1 additions and 3 deletions
  1. 1 3
      spec-main/chromium-spec.ts

+ 1 - 3
spec-main/chromium-spec.ts

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