Move to PatternFly Elements and lit
PFE uses lit, so it makes sense to just use that for the main application as well. Web components are pretty much React built into the web platform, and lit adds some convenience around that. This is mostly a demo -- for real Cockpit pages, PF Elements is still missing too many components.
This commit is contained in:
parent
6506f469ac
commit
5aa20207b7
11 changed files with 51 additions and 73 deletions
|
|
@ -18,16 +18,16 @@ class TestApplication(testlib.MachineCase):
|
|||
|
||||
self.login_and_go("/starter-kit")
|
||||
# verify expected heading
|
||||
b.wait_text(".pf-v5-c-card__title", "Starter Kit")
|
||||
b.wait_text("pf-card [slot='header']", "Starter Kit")
|
||||
|
||||
# verify expected host name
|
||||
hostname = m.execute("cat /etc/hostname").strip()
|
||||
b.wait_in_text(".pf-v5-c-alert__title", "Running on " + hostname)
|
||||
b.wait_in_text("pf-card .running-on", "Running on " + hostname)
|
||||
|
||||
# change current hostname
|
||||
self.write_file("/etc/hostname", "new-" + hostname)
|
||||
# verify new hostname name
|
||||
b.wait_in_text(".pf-v5-c-alert__title", "Running on new-" + hostname)
|
||||
b.wait_in_text("pf-card .running-on", "Running on new-" + hostname)
|
||||
|
||||
# change language to German
|
||||
b.switch_to_top()
|
||||
|
|
@ -46,7 +46,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(".pf-v5-c-alert__title", "Läuft auf")
|
||||
b.wait_in_text("pf-card .running-on", "Läuft auf")
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue