Skip to content
This repository was archived by the owner on Jan 31, 2023. It is now read-only.

Commit dfef76a

Browse files
committed
fix: normalize browser name comparison
1 parent 90ec292 commit dfef76a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const isOn = name => {
5454
}
5555

5656
if (isBrowser(normalizedName)) {
57-
return Cypress.browser.name === normalizedName
57+
return checkBrowserName(normalizedName)
5858
}
5959

6060
if (isEnvironment(name)) {
@@ -154,7 +154,7 @@ const skipOn = (name, cb) => {
154154
}
155155

156156
if (isBrowser(normalizedName)) {
157-
if (Cypress.browser.name === normalizedName) {
157+
if (checkBrowserName(normalizedName)) {
158158
skip()
159159
}
160160
return

0 commit comments

Comments
 (0)