-
-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Fix Firefox Drag'n'Drop Functionality (#294)
* Add isBrowserFirefox lib util * Extract subject type logic into un-exported helper method
- Loading branch information
1 parent
fd4e873
commit 65a194e
Showing
3 changed files
with
26 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
// eslint-disable-next-line import/prefer-default-export | ||
export { default as isManualEventHandling } from './isManualEventHandling'; | ||
export { default as isBrowserFirefox } from './isBrowserFirefox'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
const BROWSER_FIREFOX = 'firefox'; | ||
|
||
export default function isBrowserFirefox() { | ||
const { name } = Cypress.browser; | ||
|
||
return name === BROWSER_FIREFOX; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters