From 835c36157cc3f157087848c6d60ead7368e59dcc Mon Sep 17 00:00:00 2001 From: rishigupta1599 Date: Mon, 16 Oct 2023 09:49:09 +0530 Subject: [PATCH] Throwing warning on invalid browser combination --- packages/webdriver-utils/src/util/capabilityValidator.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/webdriver-utils/src/util/capabilityValidator.js b/packages/webdriver-utils/src/util/capabilityValidator.js index 0c1514af0..89abc89e7 100644 --- a/packages/webdriver-utils/src/util/capabilityValidator.js +++ b/packages/webdriver-utils/src/util/capabilityValidator.js @@ -20,6 +20,13 @@ export default class CapabilitiesValidator { const { os, osVersion, browserName, browserVersion } = this.capabilities; + if (!os || !osVersion || !browserName || !browserVersion) { + colors.yellow( + console.warn( + `OS/Browser Combination ${os}: ${osVersion}: ${browserName} ${browserName} is not supported in Percy` + ) + ); + } if (excludeBrowserData?.os[os]) { const osData = excludeBrowserData?.os[os]; if (osData?.os_versions) {