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:
Joseph Nuthalapati authored and James Valleroy committed 2018-04-08 12:35:26 -04:00
1 parent 905a418399
commit 143a24a64a
1 file changed
+2 -2
+2 -2
View File
@@ -78,11 +78,11 @@ def delete_all_snapshots(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()
def get_snapshot_count(browser):
nav_to_module(browser, 'snapshot')
browser.visit(config['DEFAULT']['url'] + '/plinth/sys/snapshot/manage/')
# Subtract 1 for table header
return len(browser.find_by_xpath('//tr')) - 1