Skip to content

Commit

Permalink
fix: fix mobile: screenshots for WDIO (#731)
Browse files Browse the repository at this point in the history
  • Loading branch information
eglitise committed Feb 6, 2024
1 parent e58f997 commit ac28c0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/commands/screenshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ export async function mobileScreenshots(opts = {}) {
);

const {displayId} = opts;
const displayIdStr = _.isNaN(displayId) ? null : `${displayId}`;
// @ts-ignore isNaN works properly here
const displayIdStr = isNaN(displayId) ? null : `${displayId}`;
if (displayIdStr) {
if (!infos[displayIdStr]) {
throw new Error(
Expand Down

0 comments on commit ac28c0c

Please sign in to comment.