package.json: Update @patternfly/patternfly, @patternfly/react-core, @patternfly/react-icons, @patternfly/react-styles

Bump Cockpit commit to pick up the necessary adjustments for latest PF,
and adjust test for the new "-v5" namespace prefix.

Closes #654
This commit is contained in:
Cockpit Project 2023-05-22 02:36:57 +00:00 committed by Katerina Koukiou
parent e3a8c9d17c
commit 092cefab3b
3 changed files with 9 additions and 9 deletions

View file

@ -34,7 +34,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 = 355c0aa59e3991243e10a61183e62ea129d3261a # 292 + 8 commits COCKPIT_REPO_COMMIT = 3796031af41bdf58602f9c6561300969db22cb99 # 292 + latest PF5 adjustments
$(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}'

View file

@ -43,10 +43,10 @@
"stylelint-formatter-pretty": "^3.2.0" "stylelint-formatter-pretty": "^3.2.0"
}, },
"dependencies": { "dependencies": {
"@patternfly/patternfly": "5.0.0-alpha.40", "@patternfly/patternfly": "5.0.0-alpha.64",
"@patternfly/react-core": "5.0.0-alpha.72", "@patternfly/react-core": "5.0.0-alpha.115",
"@patternfly/react-styles": "5.0.0-alpha.7", "@patternfly/react-styles": "5.0.0-alpha.16",
"@patternfly/react-icons": "5.0.0-alpha.10", "@patternfly/react-icons": "5.0.0-alpha.19",
"react": "17.0.2", "react": "17.0.2",
"react-dom": "17.0.2" "react-dom": "17.0.2"
} }

View file

@ -22,16 +22,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-c-card__title", "Starter Kit") b.wait_text(".pf-v5-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-c-alert__title", "Running on " + hostname) b.wait_in_text(".pf-v5-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-c-alert__title", "Running on new-" + hostname) b.wait_in_text(".pf-v5-c-alert__title", "Running on new-" + hostname)
# change language to German # change language to German
b.switch_to_top() b.switch_to_top()
@ -50,7 +50,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-c-alert__title", "Läuft auf") b.wait_in_text(".pf-v5-c-alert__title", "Läuft auf")
if __name__ == '__main__': if __name__ == '__main__':