Port to PF6

This commit is contained in:
Jelle van der Waa 2025-03-14 09:59:45 +01:00
parent 9f8929b25b
commit aa1029a15a
4 changed files with 10 additions and 10 deletions

View file

@ -32,7 +32,7 @@ COCKPIT_REPO_FILES = \
$(NULL)
COCKPIT_REPO_URL = https://github.com/cockpit-project/cockpit.git
COCKPIT_REPO_COMMIT = 1609250d9b4238e75d96da41838fdf037a0ce336 # 335 + 16 commits
COCKPIT_REPO_COMMIT = b43b68ce4831d44e0c513d1f96a4f3a5c3e8823a # 336 + pf fixes
$(COCKPIT_REPO_FILES): $(COCKPIT_REPO_STAMP)
COCKPIT_REPO_TREE = '$(strip $(COCKPIT_REPO_COMMIT))^{tree}'

View file

@ -49,10 +49,10 @@
"typescript": "5.8.2"
},
"dependencies": {
"@patternfly/patternfly": "5.4.2",
"@patternfly/react-core": "5.4.14",
"@patternfly/react-icons": "5.4.2",
"@patternfly/react-styles": "5.4.1",
"@patternfly/patternfly": "6.1.0",
"@patternfly/react-core": "6.1.0",
"@patternfly/react-icons": "6.1.0",
"@patternfly/react-styles": "6.1.0",
"react": "18.3.1",
"react-dom": "18.3.1"
}

View file

@ -24,7 +24,7 @@ import "cockpit-dark-theme";
import { Application } from './app.jsx';
import "patternfly/patternfly-5-cockpit.scss";
import "patternfly/patternfly-6-cockpit.scss";
import './app.scss';
document.addEventListener("DOMContentLoaded", () => {

View file

@ -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-v6-c-card__title", "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-v6-c-alert__title", "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-v6-c-alert__title", "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-v6-c-alert__title", "Läuft auf")
if __name__ == '__main__':