Skip to content

Serializing relative URL in iframes: Percysnapshot hang on iframe page with map #507

@yen-tt

Description

@yen-tt

Hello!
I'm using percySnapshot() function from the @percy/puppeteer package to create snapshots in the test scripts. Pages with iframe page that contains map, e.g. from Google or Mapbox API, seem to hang indefinitely and so the percy build is never finalized. There's no error in the terminal. I look through the code, and the issue seems to be specifically on the second page.evaluate call in percySnapshot()?

I have isolated the general page and test setup in this repo (map api key is omitted). when running npm run percy, the first snapshot for index.html is taken successfully. The second snapshot for iframe_test.html hangs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions