mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
functional_tests: Fix steps with domain parameter
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
2 files changed
+3
-3
No files matched your search
@@ -98,7 +98,7 @@ def disable_avahi(browser):
|
||||
|
||||
|
||||
@given(
|
||||
parsers.parse('the domain name for {app_name:w} is set to {domain_name:w}')
|
||||
parsers.parse('the domain name for {app_name:w} is set to {domain_name:S}')
|
||||
)
|
||||
def select_domain_name(browser, app_name, domain_name):
|
||||
application.select_domain_name(browser, app_name, domain_name)
|
||||
|
||||
@@ -51,7 +51,7 @@ def change_hostname_to(browser, hostname):
|
||||
system.set_hostname(browser, hostname)
|
||||
|
||||
|
||||
@when(parsers.parse('I change the domain name to {domain:w}'))
|
||||
@when(parsers.parse('I change the domain name to {domain:S}'))
|
||||
def change_domain_name_to(browser, domain):
|
||||
system.set_domain_name(browser, domain)
|
||||
|
||||
@@ -71,7 +71,7 @@ def hostname_should_be(browser, hostname):
|
||||
assert system.get_hostname(browser) == hostname
|
||||
|
||||
|
||||
@then(parsers.parse('the domain name should be {domain:w}'))
|
||||
@then(parsers.parse('the domain name should be {domain:S}'))
|
||||
def domain_name_should_be(browser, domain):
|
||||
assert system.get_domain_name(browser) == domain
|
||||
|
||||
|
||||
Reference in new issue
Block a user