mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
calibre: tests: functional: Find forms more specifically
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
c608219795
commit
2b48f10cfb
2 files changed
+3
-3
No files matched your search
@@ -20,7 +20,7 @@
|
||||
{% endblocktrans %}
|
||||
</p>
|
||||
|
||||
<form class="form" method="post">
|
||||
<form class="form form-delete" method="post">
|
||||
{% csrf_token %}
|
||||
|
||||
<input type="submit" class="btn btn-md btn-danger"
|
||||
|
||||
@@ -62,7 +62,7 @@ def _add_library(browser, name):
|
||||
browser.links.find_by_href(
|
||||
'/plinth/apps/calibre/library/create/').first.click()
|
||||
browser.find_by_id('id_calibre-name').fill(name)
|
||||
functional.submit(browser)
|
||||
functional.submit(browser, form_class='form-calibre')
|
||||
|
||||
|
||||
def _delete_library(browser, name, ignore_missing=False):
|
||||
@@ -77,7 +77,7 @@ def _delete_library(browser, name, ignore_missing=False):
|
||||
raise ValueError('Library not found')
|
||||
|
||||
link.first.click()
|
||||
functional.submit(browser)
|
||||
functional.submit(browser, form_class='form-delete')
|
||||
|
||||
|
||||
def _is_library_available(browser, name):
|
||||
|
||||
Reference in new issue
Block a user