Skip to content

Wrong response info in the exception when delaying the rendering #333

@stof

Description

@stof

The Mink Exception displayes the response info in its __toString message. but they are retrieved when displaying the exception, not when creating it. This means that the info will be related to the last page, not to the page on which the exception occured.

We figured it when using Mink in Behat: when using the pretty formatter, the info are right as the exception is displayed just after being thrown. But when using the progress formatter, the exception is only displayed at the end of the run so the response info will be taken from the last page of the last scenario instead

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions