Closed fonsvalidsign closed 6 months ago
Hi Fons (@fonsvalidsign) 👋,
Thanks for bringing the issue to my attention!
The fix is now live in yoeunes/toastr
v2.3.1. 🚀 Could you please give it a try and let me know if it resolves the view assertion test issue?
If you have any more issues or questions, feel free to reach out.
Best regards, Younes
The latest version works, thank you very much!
I've replaced the package with own code for some of the applications that needed to be upgraded, but now I know we can keep using your package with the other applications going forward!
Describe the bug In our application, we often assert if the correct view is returned like so:
This works with Laravel 9 and your yoeunes/toastr v1, but since upgrading to Laravel 10 and yoeunes/toastr v2 all tests that use
assertViewIs
now return the following error:The response is not a view.
I think this may be caused by adding the CDN link to flasher in every view.
Sidenote The pages that "don't return a view" do still work as intended.
To Reproduce Steps to reproduce the behaviour:
composer create-project laravel/laravel 'project-name'
)tests/Feature/Exampletext
: replace->assertStatus(200)
with->assertOk()->assertViewIs('welcome')
.composer require yoeunes/toastr
)Expected behavior What should otherwise be valid views in Laravel, should not suddenly become invalid, or no views.
Screenshots
Desktop (please complete the following information):
FROM php:8-apache
). This problem also occurs when running it in macOS 14.2.1 (23C71)Severity