WIP - add some pixel test points

This commit is contained in:
Marius Vollmer 2021-03-08 14:21:26 +02:00
parent 90a5cf4f88
commit fb89e51c14

View file

@ -27,6 +27,7 @@ class TestApplication(testlib.MachineCase):
# verify expected host name
hostname = m.execute("hostname").strip()
b.wait_in_text(".pf-c-alert__title", "Running on " + hostname)
b.assert_pixels("hostname")
# change current hostname
self.write_file("/etc/hostname", "new-" + hostname)
@ -57,6 +58,7 @@ class TestApplication(testlib.MachineCase):
b.enter_page("/starter-kit")
# page label (from js) should be translated
b.wait_in_text(".pf-c-alert__title", "Läuft auf")
b.assert_pixels("gastgebername")
if __name__ == '__main__':