Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More informative errror in ShowPage.php #16171

Open
wants to merge 1 commit into
base: 1.13
Choose a base branch
from

Conversation

lechbaczynski
Copy link

I always didn't like behat errors like:

Given I have product "Xxxx" in the cart
(FriendsOfBehat\PageObjectExtension\Page\UnexpectedPageException)

Not informative. Is it unexpected page (i.e. wrong page opened)? Or is it unexpected exception?

Now it shows:

Is not open: Could not open the page: "http://localhost:8080/en_US/products/xxx". Received an error status code: 500 {"slug":"xxx"} (FriendsOfBehat\PageObjectExtension\Page\UnexpectedPageException)

Feel free to improve or change this commit.

Q A
Branch? 1.13 (1.12 would be nice too)
Bug fix? no
New feature? no
BC breaks? ?
Deprecations? no?
Related tickets none
License MIT

@lechbaczynski lechbaczynski requested review from a team as code owners April 23, 2024 14:08
Copy link

Bunnyshell Preview Environment deployed

It will be automatically stopped in 4 hours.

Use the command /bns:start to start it if it's stopped.

Component Endpoints
mailhog https://mailhog-h5obc7.bunnyenv.com/
php https://store-h5obc7.bunnyenv.com/

Available commands:

  • /bns:stop to stop the environment
  • /bns:deploy to redeploy the environment
  • /bns:delete to remove the environment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant