functional-tests: Skip network setup wizard

Fixes #1781

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
[sunil: Update to work with latest code]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Joseph Nuthalapati authored and Sunil Mohan Adapa committed 2020-05-12 17:50:06 -07:00
1 parent 55f4573e93
commit adc1c67e12
1 file changed
+5
+5
View File
@@ -41,6 +41,11 @@ def login(browser, url, username, password):
browser.visit(default_url + '/plinth/firstboot/welcome')
submit(browser) # click the "Start Setup" button
create_admin_account(browser, username, password)
if '/network-topology-first-boot' in browser.url:
submit(browser, element=browser.find_by_name('skip')[0])
if '/internet-connection-type' in browser.url:
submit(browser, element=browser.find_by_name('skip')[0])
def is_login_prompt(browser):