Skip to content

CLI never completes execution when there is an error in replay #132

@ergunsh

Description

@ergunsh

Expected Behavior

CLI should report the error and complete the execution

Actual Behavior

Execution hangs and you need to press Ctrl + C to cancel execution

Steps to Reproduce the Problem

  1. Save the attached replay
  2. Run npx @puppeteer/replay <saved-recording-path>

You can make the json pass by removing --wrong from the selector in the click step.

Specifications

  • Version: @puppeteer/replay 0.1.2
  • Platform: MacOS

Attachment

{
  "title": "hn-app-refresh",
  "steps": [
    {
      "type": "setViewport",
      "width": 1280,
      "height": 1361,
      "deviceScaleFactor": 1,
      "isMobile": false,
      "hasTouch": false,
      "isLandscape": false
    },
    {
      "type": "navigate",
      "url": "https://hn-vanilla-pwa.ergunsh.vercel.app/",
      "assertedEvents": [
        {
          "type": "navigation",
          "url": "https://hn-vanilla-pwa.ergunsh.vercel.app/",
          "title": "HN App"
        }
      ]
    },
    {
      "type": "click",
      "selectors": [
        [
          "#postListContainer--wrong > div > div:nth-child(1) > h4"
        ]
      ],
      "target": "main",
      "offsetX": 148,
      "offsetY": 10.5625
    }
  ]
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions