parent
f2a11ba1de
commit
2bb8e01d2d
3 changed files with 11 additions and 15 deletions
|
|
@ -20,16 +20,16 @@ class TestApplication(testlib.MachineCase):
|
|||
|
||||
self.login_and_go("/starter-kit")
|
||||
# verify expected heading
|
||||
b.wait_text("h2.pf-c-title", "Starter Kit")
|
||||
b.wait_text(".pf-c-card__title", "Starter Kit")
|
||||
|
||||
# verify expected host name
|
||||
hostname = m.execute("hostname").strip()
|
||||
b.wait_in_text("h4.pf-c-alert__title", "Running on " + hostname)
|
||||
b.wait_in_text(".pf-c-alert__title", "Running on " + hostname)
|
||||
|
||||
# change current hostname
|
||||
m.execute("echo new-%s > /etc/hostname" % hostname)
|
||||
# verify new hostname name
|
||||
b.wait_in_text("h4.pf-c-alert__title", "Running on new-" + hostname)
|
||||
b.wait_in_text(".pf-c-alert__title", "Running on new-" + hostname)
|
||||
|
||||
# change language to German
|
||||
b.switch_to_top()
|
||||
|
|
@ -48,7 +48,7 @@ class TestApplication(testlib.MachineCase):
|
|||
b.go("/starter-kit")
|
||||
b.enter_page("/starter-kit")
|
||||
# page label (from js) should be translated
|
||||
b.wait_in_text("h4.pf-c-alert__title", "Läuft auf")
|
||||
b.wait_in_text(".pf-c-alert__title", "Läuft auf")
|
||||
|
||||
if __name__ == '__main__':
|
||||
testlib.test_main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue