From 69cb9c1581d14d08f8be5e934aaacea3f853cd86 Mon Sep 17 00:00:00 2001 From: "trop[bot]" <37223003+trop[bot]@users.noreply.github.com> Date: Thu, 27 Oct 2022 16:47:54 -0400 Subject: [PATCH] test: fixup HID test for ARM CI (#36172) (cherry picked from commit caf28066d66bbfdca992343bef34f5cfe3336bed) Co-authored-by: John Kleinschmidt Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: John Kleinschmidt --- spec-main/chromium-spec.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/spec-main/chromium-spec.ts b/spec-main/chromium-spec.ts index 75181a8ffda20..14df7d1b661ea 100644 --- a/spec-main/chromium-spec.ts +++ b/spec-main/chromium-spec.ts @@ -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();