From 19c14a1a7035f9a628afc2c72f985c85f6828296 Mon Sep 17 00:00:00 2001 From: Nate Shoemaker Date: Thu, 31 Oct 2024 12:31:26 -0700 Subject: [PATCH] WIP --- .gitignore | 2 ++ lib/nerves_hub_web/live/deployments/new.html.heex | 1 + test/nerves_hub_web/live/deployments/new_test.exs | 5 ++++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 44a31903f..d23062ac7 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,5 @@ test/fixtures/ssl/device-root-ca.srl .env* .iex.exs + +.DS_Store \ No newline at end of file diff --git a/lib/nerves_hub_web/live/deployments/new.html.heex b/lib/nerves_hub_web/live/deployments/new.html.heex index b1173f8cc..3e5c0d6eb 100644 --- a/lib/nerves_hub_web/live/deployments/new.html.heex +++ b/lib/nerves_hub_web/live/deployments/new.html.heex @@ -21,6 +21,7 @@ <% else %> <.form :let={f} for={@form} phx-submit="create-deployment"> + <%!-- <%= hidden_input(f, :platform, value: @platform) %> --%>
<%= text_input(f, :name, class: "form-control", id: "name_input") %> diff --git a/test/nerves_hub_web/live/deployments/new_test.exs b/test/nerves_hub_web/live/deployments/new_test.exs index 89f87062b..63c6a29e5 100644 --- a/test/nerves_hub_web/live/deployments/new_test.exs +++ b/test/nerves_hub_web/live/deployments/new_test.exs @@ -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")