@cypress/skip-test
Advanced tools
Comparing version 2.3.0 to 2.4.0
14
index.js
@@ -6,2 +6,12 @@ /// <reference path="./index.d.ts" /> | ||
const checkBrowserName = name => { | ||
if ('isBrowser' in Cypress) { | ||
// use the new v4.0 method | ||
// @ts-ignore | ||
return Cypress.isBrowser(name) | ||
} else { | ||
return Cypress.browser.name === name | ||
} | ||
} | ||
/** | ||
@@ -128,6 +138,6 @@ * Cleans up the passed name which could be browser, platform or other. | ||
if (isBrowser(normalizedName)) { | ||
if (Cypress.browser.name !== normalizedName) { | ||
if (!checkBrowserName(normalizedName)) { | ||
return cb() | ||
} | ||
return | ||
return it(`Skipping test(s) on ${normalizedName}`) | ||
} | ||
@@ -134,0 +144,0 @@ |
{ | ||
"name": "@cypress/skip-test", | ||
"version": "2.3.0", | ||
"version": "2.4.0", | ||
"description": "Simple commands to skip a test based on platform, browser or an url", | ||
@@ -20,5 +20,5 @@ "main": "index.js", | ||
"devDependencies": { | ||
"cypress": "3.6.1", | ||
"cypress": "3.8.3", | ||
"prettier": "1.19.1", | ||
"semantic-release": "15.13.30" | ||
"semantic-release": "15.14.0" | ||
}, | ||
@@ -25,0 +25,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14513
242