mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-08-26 12:46:08 +00:00
snapshots: Fix tests broken by UI changes
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
905a418399
commit
143a24a64a
@ -78,11 +78,11 @@ def delete_all_snapshots(browser):
|
|||||||
|
|
||||||
|
|
||||||
def create_snapshot(browser):
|
def create_snapshot(browser):
|
||||||
nav_to_module(browser, 'snapshot')
|
browser.visit(config['DEFAULT']['url'] + '/plinth/sys/snapshot/manage/')
|
||||||
browser.find_by_value('Create Snapshot').click()
|
browser.find_by_value('Create Snapshot').click()
|
||||||
|
|
||||||
|
|
||||||
def get_snapshot_count(browser):
|
def get_snapshot_count(browser):
|
||||||
nav_to_module(browser, 'snapshot')
|
browser.visit(config['DEFAULT']['url'] + '/plinth/sys/snapshot/manage/')
|
||||||
# Subtract 1 for table header
|
# Subtract 1 for table header
|
||||||
return len(browser.find_by_xpath('//tr')) - 1
|
return len(browser.find_by_xpath('//tr')) - 1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user