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:
Sunil Mohan Adapa 2022-08-30 22:17:04 -07:00 committed by James Valleroy
parent c608219795
commit 2b48f10cfb
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
2 changed files with 3 additions and 3 deletions

View File

@ -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"

View File

@ -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):