From 8990d0650ac3d73e58c1003d0681a8cf98dfec9d Mon Sep 17 00:00:00 2001 From: Rob Dodson Date: Fri, 7 Jun 2019 11:23:06 -0700 Subject: [PATCH] Skip meta tests on windows. --- test/specs/meta-keys.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/specs/meta-keys.js b/test/specs/meta-keys.js index 180aa18..f67bb38 100644 --- a/test/specs/meta-keys.js +++ b/test/specs/meta-keys.js @@ -4,6 +4,18 @@ const expect = require('expect'); const driver = global.__driver; describe('meta keys', function() { + before(function() { + // Skip these tests in Edge and IE because it's unclear how to get focus + // back to the page when pressing the Windows meta key without clicking + // on the page which would sort of negate the test. + if ( + process.env.TEST_BROWSER.includes('Edge') || + process.env.TEST_BROWSER.includes('Internet Explorer') + ) { + this.skip(); + } + }); + beforeEach(function() { return fixture('button.html'); });