-
Notifications
You must be signed in to change notification settings - Fork 69
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
Bump phoenix_test from 0.3.1 to 0.4.2 #1601
base: main
Are you sure you want to change the base?
Conversation
Bumps [phoenix_test](https://github.com/germsvel/phoenix_test) from 0.3.1 to 0.4.2. - [Changelog](https://github.com/germsvel/phoenix_test/blob/main/CHANGELOG.md) - [Commits](germsvel/phoenix_test@v0.3.1...v0.4.2) --- updated-dependencies: - dependency-name: phoenix_test dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
b5759b0
to
19c14a1
Compare
|> select( | ||
"#{firmware.version} #{firmware.platform} #{firmware.architecture} #{firmware.uuid}", | ||
from: "Firmware version" | ||
) | ||
|> click_button("Create Deployment") |
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.
@joshk looking for some direction here before I venture out of this repo for answers. The change I made from fill_in
-> select
works, but now this test fails on submit:
1) test new deployment the happy path, with an audit log (NervesHubWeb.Live.Deployments.NewTest)
test/nerves_hub_web/live/deployments/new_test.exs:9
** (ArgumentError) could not find non-disabled input, select or textarea with name "deployment[platform]" within:
<input class="form-control" id="name_input" name="deployment[name]" type="text"/>
<input class="form-control" id="tags_input" name="deployment[tags]" type="text" value=""/>
<select class="form-control" id="firmware_id" name="deployment[firmware_id]" required="required"><option value="">Choose a firmware version</option><option value="1564">1.0.0 taramasalata x86_64 8dc5f02a-298f-5890-bbda-b697d1b88d47</option></select>
<input class="form-control" id="version_input" name="deployment[version]" type="text" value=""/>
code: |> click_button("Create Deployment")
stacktrace:
(phoenix_live_view 0.20.17) lib/phoenix_live_view/test/live_view_test.ex:1102: Phoenix.LiveViewTest.call/2
(phoenix_test 0.4.0) lib/phoenix_test/live.ex:328: PhoenixTest.Live.submit_form/4
test/nerves_hub_web/live/deployments/new_test.exs:32: (test)
Phoenix.LiveViewTest
is looking for deployment[platform]
, but the form element no longer exists because of the logic in deployments/new.html.eex
.
Have you seen anything like this before? I have experience with LiveView, but not testing it with phoenix_test
. I did verify this broke in 0.4.0
of phoenix_test
.
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.
You can leave this with me as I was in talks with German (the author of the lib) about the issues I saw with upgrading; I just put this to the side temporarily as I picked up other items.
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! Thank you 🙇
Bumps phoenix_test from 0.3.1 to 0.4.2.
Changelog
Sourced from phoenix_test's changelog.
... (truncated)
Commits
d3196ce
Publish version 0.4.224192e2
Fix: do not recycle fresh conn5b25afc
Refactor: move all element-like modules under Elementc3c9c87
Publish version 0.4.10d54b49
Updatephx_click?
to check for valid JS commands (#139)e950ae4
Deduplicate data passed to FormPayload (#137)7df460a
Extract payload operations into FormPayload06e43e9
Move name validation out of FormData parsingba34d9a
Encapsulate FormData data structureb37199d
Rename build_data -> build_payload to clarifyYou can trigger a rebase of this PR by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditions
will show all of the ignore conditions of the specified dependency@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)