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
fix: Include submitter data in partial form data #2307
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, this is great! Thanks for opening a PR 👍 Let's add a test case and then it's ready to be merged
Hi @marvinhagemeister I've tried adding a simple test case, but it's failing and I don't understand why. I've tried the fixture pages in my browser, and they behave as I would expect, but the assertion in the test itself fails. I have a feeling the problem will be obvious to you, so please could you take a look? |
TLDR: The feature works fine, but unit tests require a newer version of Puppeteer, which is not easily available. Fresh uses a Deno fork of Puppeteer version 16.2.0 from deno.land/x . That installs and runs an old version of Headless Chrome: The good news is that it's now possible to run the latest version of Puppeteer directly from An update to |
@marvinhagemeister as a quick fix I could add the submitter name&value manually to the EDIT: I've added a commit to do that, which should make the unit tests pass. |
This is needed to support older browsers, including that used by Puppeteer v16.2.0 for Fresh's unit tests
Hi @marvinhagemeister is this OK? I'm not a fan of adding the form data manually, but it has the same effect and seems to be the only way to make it testable with this version of Puppeteer. |
Fixes #2306