Port to PF6
This commit is contained in:
parent
9f8929b25b
commit
aa1029a15a
4 changed files with 10 additions and 10 deletions
2
Makefile
2
Makefile
|
|
@ -32,7 +32,7 @@ COCKPIT_REPO_FILES = \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
COCKPIT_REPO_URL = https://github.com/cockpit-project/cockpit.git
|
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_FILES): $(COCKPIT_REPO_STAMP)
|
||||||
COCKPIT_REPO_TREE = '$(strip $(COCKPIT_REPO_COMMIT))^{tree}'
|
COCKPIT_REPO_TREE = '$(strip $(COCKPIT_REPO_COMMIT))^{tree}'
|
||||||
|
|
|
||||||
|
|
@ -49,10 +49,10 @@
|
||||||
"typescript": "5.8.2"
|
"typescript": "5.8.2"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@patternfly/patternfly": "5.4.2",
|
"@patternfly/patternfly": "6.1.0",
|
||||||
"@patternfly/react-core": "5.4.14",
|
"@patternfly/react-core": "6.1.0",
|
||||||
"@patternfly/react-icons": "5.4.2",
|
"@patternfly/react-icons": "6.1.0",
|
||||||
"@patternfly/react-styles": "5.4.1",
|
"@patternfly/react-styles": "6.1.0",
|
||||||
"react": "18.3.1",
|
"react": "18.3.1",
|
||||||
"react-dom": "18.3.1"
|
"react-dom": "18.3.1"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ import "cockpit-dark-theme";
|
||||||
|
|
||||||
import { Application } from './app.jsx';
|
import { Application } from './app.jsx';
|
||||||
|
|
||||||
import "patternfly/patternfly-5-cockpit.scss";
|
import "patternfly/patternfly-6-cockpit.scss";
|
||||||
import './app.scss';
|
import './app.scss';
|
||||||
|
|
||||||
document.addEventListener("DOMContentLoaded", () => {
|
document.addEventListener("DOMContentLoaded", () => {
|
||||||
|
|
|
||||||
|
|
@ -18,16 +18,16 @@ class TestApplication(testlib.MachineCase):
|
||||||
|
|
||||||
self.login_and_go("/starter-kit")
|
self.login_and_go("/starter-kit")
|
||||||
# verify expected heading
|
# 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
|
# verify expected host name
|
||||||
hostname = m.execute("cat /etc/hostname").strip()
|
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
|
# change current hostname
|
||||||
self.write_file("/etc/hostname", "new-" + hostname)
|
self.write_file("/etc/hostname", "new-" + hostname)
|
||||||
# verify new hostname name
|
# 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
|
# change language to German
|
||||||
b.switch_to_top()
|
b.switch_to_top()
|
||||||
|
|
@ -46,7 +46,7 @@ class TestApplication(testlib.MachineCase):
|
||||||
b.go("/starter-kit")
|
b.go("/starter-kit")
|
||||||
b.enter_page("/starter-kit")
|
b.enter_page("/starter-kit")
|
||||||
# page label (from js) should be translated
|
# 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__':
|
if __name__ == '__main__':
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue