Skip to content

Commit

Permalink
resolved comments
Browse files Browse the repository at this point in the history
  • Loading branch information
this-is-shivamsingh committed Nov 3, 2023
1 parent aea0c16 commit d3b99da
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions percy/driver/driverWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ class AppiumDriver {
/* istanbul ignore else */
// Note: else is covered here but constructor name '' couldnt cover (which is the case)
// in real world when you get wd driver passed so need to ignore coverage on it

// In typescript for wdio we get driver.constuctor.name as 'BoundBrowser'
if (driver.constructor.name.includes('Browser') && !Undefined(driver.getSession)) {
this.type = 'wdio';
} else if ((driver.constructor.name === '' ||
Expand Down

0 comments on commit d3b99da

Please sign in to comment.