Skip to content

Fail upon JS console errors #263

@leoc

Description

@leoc

Ok, hope this does not come over as too negative. I love this gem and all it provides. Thanks a lot!

Just want to share my situation of today:

  • my rails app is running inside docker (in dev, test and production), the whole project is set up that way
  • I render a PDF from a page that is loading a view from a React SPA
  • the React SPA failed to render, leaving the page blank, only printing some errors via console.error

How can I grab this console output and maybe let me know in test, or when debugging in dev?

My ideal situation would be to assert in test, that the rendering of the PDF did not cause any JS errors. And if there are errors, I would like to see them in the test failure output.

Browserless did not connect correctly. I only found out about the JS errors, because I tediously extracted the Rails app from Docker and run it locally. This should not have been necessary.

Did I miss something?

Anyway, heres a dog with pizza.

image

Metadata

Metadata

Assignees

No one assigned

    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