Test fetch with form data #1637
Unanswered
costiiordan
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When I execute tests on pages that use fetch to send form data to the server, the form data is not sent.
I created a simple example to showcase the issue:
Controller:
View:
On browser when I click on "Test" button, I see "Hello from JS!".
When I execute the PEST test
The test fails with the following message:
In the screenshot I see: "No input provided".
Does anyone knows what is the cause of this issue?
The issue can be reproduced in this repository
Beta Was this translation helpful? Give feedback.
All reactions