WIP - capture only the alert

This commit is contained in:
Marius Vollmer 2021-03-18 15:40:46 +02:00
parent 65b1368089
commit a00c3dffdf
3 changed files with 2 additions and 2 deletions

View file

@ -27,7 +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")
b.assert_pixels(".pf-c-card__body", "hostname")
# change current hostname
self.write_file("/etc/hostname", "new-" + hostname)
@ -58,7 +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")
b.assert_pixels(".pf-c-card__body", "gastgebername")
if __name__ == '__main__':

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

Before After
Before After