You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just tested it. The following features do not work on web:
timeline (can't write HTML report to disk)
screenshots (can't write files to disk)
font loading (can't load font)
I might find workarounds but not in the short-term.
What's your reason for executing your tests in chrome instead of the Dart VM?
Since you might have some experience with running tests in chrome: Would you rather have await loadAppFonts() crash on web or do nothing on web (with warning in the console)?
One example was that we are using flutter_pdfview to view PDFs. We ran into an issue, because that package only works on mobile platform. So we used a different code path using if (kIsWeb) to open the url via url_launcher on web instead.
Because we are already using spot everywhere else, we wanted to use it here as well, also for the nicer syntax.
We skip await loadAppFonts() in our tests, so passing with a warning would be best. 👍
Description
Tests using
spot
fail when running them in a browser environment.Expected behavior
If a test that does not use
spot
succeeds when passing the--platform chrome
flag. The same test refactored to usespot
should also succeed.Actual behavior
Tests that use
spot
fail with the following error when running them with--platform chrome
flag.Steps to reproduce
flutter test --platform chrome
The text was updated successfully, but these errors were encountered: