Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
nshoes committed Oct 31, 2024
1 parent b796872 commit 19c14a1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ test/fixtures/ssl/device-root-ca.srl

.env*
.iex.exs

.DS_Store
1 change: 1 addition & 0 deletions lib/nerves_hub_web/live/deployments/new.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
</.form>
<% else %>
<.form :let={f} for={@form} phx-submit="create-deployment">
<%!-- <%= hidden_input(f, :platform, value: @platform) %> --%>
<div class="form-group">
<label for="name_input">Deployment name</label>
<%= text_input(f, :name, class: "form-control", id: "name_input") %>
Expand Down
5 changes: 4 additions & 1 deletion test/nerves_hub_web/live/deployments/new_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ defmodule NervesHubWeb.Live.Deployments.NewTest do
|> select(firmware.platform, from: "Platform")
|> fill_in("Deployment name", with: "Moussaka")
|> fill_in("Tag(s) distributed to", with: "josh, lars")
|> fill_in("Firmware version", with: firmware.id)
|> select(
"#{firmware.version} #{firmware.platform} #{firmware.architecture} #{firmware.uuid}",
from: "Firmware version"
)
|> click_button("Create Deployment")
|> assert_path(URI.encode("/org/#{org.name}/#{product.name}/deployments"))
|> assert_has("h1", text: "Deployments")
Expand Down

0 comments on commit 19c14a1

Please sign in to comment.