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

test: Add form submission test for button and input submit elements #52

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

areknoster
Copy link
Contributor

The issue I mentioned earlier. Apparently I was wrong - it's not specific to input or button type.
It's that the input of the form are not the issue on the browser stage, but all values are lost somewhere in between.

I've made this for the purpose of showcasing the issue, this should not be merged.

❯ go test -run TestSubmitForm
--- FAIL: TestSubmitForm (0.01s)
    submit_form_test.go:26: Invalid hidden value: 
    submit_form_test.go:37: Invalid name: 
    submit_form_test.go:26: Invalid hidden value: 
    submit_form_test.go:37: Invalid name: 
FAIL
exit status 1
FAIL    github.com/gost-dom/browser     0.685s

areknoster and others added 2 commits March 5, 2025 13:05
Adds a comprehensive test for form submission in the browser package, covering:
- Submitting forms via button and input submit elements
- Verifying hidden form values
- Checking form submission with different input types
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.

1 participant