Skip to content

Commit

Permalink
Throwing warning on invalid browser combination
Browse files Browse the repository at this point in the history
  • Loading branch information
rishigupta1599 committed Oct 16, 2023
1 parent 2ea9624 commit 835c361
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/webdriver-utils/src/util/capabilityValidator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 835c361

Please sign in to comment.