mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +00:00
networks, samba: tests: functional: Fix setting firewall zone
Without the changes, the form submission for setting firewall zone fails with error similar to "element can't be scrolled to view". Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
770974c8ce
commit
c4f087ea4a
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
<h3>{{ title }}</h3>
|
<h3>{{ title }}</h3>
|
||||||
|
|
||||||
<form class="form" method="post">
|
<form class="form form-connection-create" method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|
||||||
{{ form|bootstrap }}
|
{{ form|bootstrap }}
|
||||||
|
|||||||
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
<h3>{{ title }}</h3>
|
<h3>{{ title }}</h3>
|
||||||
|
|
||||||
<form class="form" method="post">
|
<form class="form form-connection-edit" method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|
||||||
{{ form|bootstrap }}
|
{{ form|bootstrap }}
|
||||||
|
|||||||
@ -566,7 +566,7 @@ def networks_set_firewall_zone(browser, zone):
|
|||||||
edit_url = "/plinth/sys/networks/{}/edit/".format(network_id)
|
edit_url = "/plinth/sys/networks/{}/edit/".format(network_id)
|
||||||
browser.links.find_by_href(edit_url).first.click()
|
browser.links.find_by_href(edit_url).first.click()
|
||||||
browser.select('zone', zone)
|
browser.select('zone', zone)
|
||||||
browser.find_by_tag("form").first.find_by_tag('input')[-1].click()
|
submit(browser, form_class='form-connection-edit')
|
||||||
|
|
||||||
|
|
||||||
##################
|
##################
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user