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

Support phx-trigger-action #47

Open
totaltrash opened this issue Mar 19, 2024 · 1 comment
Open

Support phx-trigger-action #47

totaltrash opened this issue Mar 19, 2024 · 1 comment

Comments

@totaltrash
Copy link

I'm not sure if this is something that can be supported but it doesn't appear to work at the moment.

I've got a form in a live view that submits to a controller when phx-trigger-action resolves to true, as explained here. This pattern lets you use liveview for realtime form validation, then submit the form to a controller where controller stuff needs to happen (interacting with the conn). Currently the form is not submitted when triggered using phoenix_test.

It seems like something that would fit right in to the phoenix_test wheelhouse, testing an interaction between liveviews and controllers.

@germsvel
Copy link
Owner

Thanks for opening this issue (and the PR) @totaltrash! I think this would be a great addition to PhoenixTest.

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

No branches or pull requests

2 participants