Skip to content

Commit

Permalink
Merge pull request #5275 from KKoukiou/bump-testlib
Browse files Browse the repository at this point in the history
webui: bump Cockpit version of testlib
  • Loading branch information
KKoukiou authored Oct 26, 2023
2 parents 8acd3a9 + 6c71daf commit a8a3b36
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 16 deletions.
2 changes: 1 addition & 1 deletion ui/webui/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ COCKPIT_REPO_FILES = \
$(NULL)

COCKPIT_REPO_URL = https://github.com/cockpit-project/cockpit.git
COCKPIT_REPO_COMMIT = 4133eb93dc20f00db996d1fefdd5fcbfd1d6b320 # 298
COCKPIT_REPO_COMMIT = 7baca286c10dc50884fcda02c45f338dd18f5e24 # 303 + inherit_machine_class

$(COCKPIT_REPO_FILES): $(COCKPIT_REPO_STAMP)
COCKPIT_REPO_TREE = '$(strip $(COCKPIT_REPO_COMMIT))^{tree}'
Expand Down
4 changes: 2 additions & 2 deletions ui/webui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"deep-equal": "2.2.2",
"esbuild": "0.19.5",
"esbuild-plugin-copy": "^2.0.2",
"esbuild-plugin-replace": "^1.3.0",
"esbuild-plugin-replace": "1.4.0",
"esbuild-sass-plugin": "2.16.0",
"eslint": "^8.38.0",
"eslint-config-standard": "^17.0.0",
Expand All @@ -30,9 +30,9 @@
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"gettext-parser": "7.0.1",
"htmlparser": "^1.7.7",
"jed": "^1.1.1",
"po2json": "^1.0.0-alpha",
"qunit": "^2.19.0",
"sass": "^1.59.3",
"sizzle": "^2.3.6",
Expand Down
2 changes: 1 addition & 1 deletion ui/webui/src/helpers/exit.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ export const exitGui = () => {
console.log("Killing WebUI process, PID: ", pid);
return cockpit.spawn(["kill", pid]);
})
.catch(() => console.error("Failed to kill WebUI process, PID: ", pid))
.catch(exc => console.error("Failed to kill WebUI process, PID: ", pid, exc.message))
.finally(pidFile.close);
};
3 changes: 1 addition & 2 deletions ui/webui/test/check-basic
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ class TestBasic(anacondalib.VirtInstallMachineCase):
".pf-v5-c-about-modal-box",
"about-modal",
ignore=["#about-modal-versions dd"],
wait_animations=False,
)

#Close about modal
Expand Down Expand Up @@ -229,10 +228,10 @@ class TestBasic(anacondalib.VirtInstallMachineCase):
b.wait_in_text("#critical-error-bz-report-modal-details", "Error: Unexpected JS error")
time.sleep(2)

b.wait_visible("a:contains('Report issue'):not([disabled])")
b.assert_pixels(
"#critical-error-bz-report-modal.pf-v5-c-modal-box",
"js-error-modal",
wait_animations=False,
ignore=["#critical-error-bz-report-modal-review-log"]
)

Expand Down
1 change: 0 additions & 1 deletion ui/webui/test/check-language
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ class TestLanguage(anacondalib.VirtInstallMachineCase):
# HACK pf-v5-c-menu__item-text is ignored because some of our CI infrastructure is
# missing CJK and Cyrillic fonts..
ignore=["#betanag-icon", ".pf-v5-c-menu__item-text"],
wait_animations=False,
)

b.wait_in_text("h2 + h3", "Wählen Sie eine Sprache aus")
Expand Down
3 changes: 2 additions & 1 deletion ui/webui/test/check-progress
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ class TestInstallationProgress(anacondalib.VirtInstallMachineCase):
def testBasic(self):
# HACK Ignore some selinux errors
self.allow_journal_messages(".*denied.*comm=\"tar\" name=\"/\".*")
self.allow_browser_errors(".*client closed.*")
self.allow_browser_errors(".*Server has closed the connection.*")

b = self.browser
m = self.machine
Expand All @@ -51,7 +53,6 @@ class TestInstallationProgress(anacondalib.VirtInstallMachineCase):
"#app",
"installation-progress-complete",
ignore=["#betanag-icon"],
wait_animations=False,
)

p.wait_done()
Expand Down
1 change: 0 additions & 1 deletion ui/webui/test/check-review
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ class TestReview(anacondalib.VirtInstallMachineCase):
"#app",
"review-step-basic",
ignore=["#betanag-icon"],
wait_animations=False,
)

def testNoConfirmation(self):
Expand Down
6 changes: 0 additions & 6 deletions ui/webui/test/check-storage
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ class TestStorage(anacondalib.VirtInstallMachineCase, StorageHelpers):
"#app",
"storage-step-basic",
ignore=["#betanag-icon"],
wait_animations=False,
)

# This attaches a disk to the running VM
Expand Down Expand Up @@ -102,7 +101,6 @@ class TestStorage(anacondalib.VirtInstallMachineCase, StorageHelpers):
"#app",
"storage-step-basic-live",
ignore=["#betanag-icon"],
wait_animations=False,
)

s.modify_storage()
Expand Down Expand Up @@ -153,7 +151,6 @@ class TestStorage(anacondalib.VirtInstallMachineCase, StorageHelpers):
"#app",
"storage-step-encrypt",
ignore=["#betanag-icon"],
wait_animations=False,
)

s.check_encryption_selected(False)
Expand All @@ -165,7 +162,6 @@ class TestStorage(anacondalib.VirtInstallMachineCase, StorageHelpers):
"#app",
"storage-step-password",
ignore=["#betanag-icon"],
wait_animations=False,
)

# No password set
Expand Down Expand Up @@ -412,7 +408,6 @@ class TestStorageMountPoints(anacondalib.VirtInstallMachineCase, StorageHelpers)
b.assert_pixels(
"#app",
"mount-point-mapping-table",
wait_animations=False,
)

i.reach(i.steps.REVIEW)
Expand Down Expand Up @@ -554,7 +549,6 @@ class TestStorageMountPoints(anacondalib.VirtInstallMachineCase, StorageHelpers)
b.assert_pixels(
"#app",
"review-multiple-disks",
wait_animations=False,
)

@nondestructive
Expand Down
2 changes: 1 addition & 1 deletion ui/webui/test/reference

0 comments on commit a8a3b36

Please sign in to comment.