Skip to content

Commit

Permalink
Fix checkIsFrame too
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy authored Sep 29, 2023
1 parent 99be579 commit d9dcbdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/expect-puppeteer/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const checkIsPage = (instance: unknown): instance is Page => {
export const checkIsFrame = (instance: unknown): instance is Frame => {
return (
checkIsPuppeteerInstance(instance) &&
instance?.constructor?.name === "Frame"
(instance?.constructor?.name === "CDPFrame" || instance?.constructor?.name === "CdpFrame")
);
};

Expand Down

0 comments on commit d9dcbdd

Please sign in to comment.