diff --git a/instances/templates/create_instance_w2.html b/instances/templates/create_instance_w2.html
index 6e2342c5..6d1f3d0e 100644
--- a/instances/templates/create_instance_w2.html
+++ b/instances/templates/create_instance_w2.html
@@ -446,7 +446,7 @@
-
@@ -465,7 +465,7 @@
-
+
{% for network in networks %}
{% endfor %}
@@ -707,7 +707,7 @@
-
diff --git a/instances/tests/test_create_page_js.py b/instances/tests/test_create_page_js.py
index b432d6e2..35f0d678 100644
--- a/instances/tests/test_create_page_js.py
+++ b/instances/tests/test_create_page_js.py
@@ -139,6 +139,15 @@ console.log(JSON.stringify([field("#networks").value, field("#custom_mac").value
self.assertEqual(result.returncode, 0, result.stderr)
return json.loads(result.stdout)
+ def test_the_selects_without_a_label_of_their_own_are_named(self):
+ # TomSelect points the label of a select it enhances at its own
+ # input; the template select sits beside the template pool's label
+ _, page = self.page()
+ page = html.fromstring(page)
+ for select in ("image-control", "network-control", "template"):
+ with self.subTest(select=select):
+ self.assertTrue(page.get_element_by_id(select).get("aria-label"))
+
def test_a_mac_per_nic_fits_the_form(self):
macs = ",".join(f"52:54:00:00:00:{n:02x}" for n in range(8))
self.assertEqual(NewVMForm.base_fields["mac"].clean(macs), macs)