1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-12-21 03:10:06 +01:00

Fix UI test now that PHP 8.6 is included

This commit is contained in:
2025-12-06 12:30:42 +01:00
parent 8d91d18f79
commit 6c34f68d25

View File

@@ -92,21 +92,23 @@ final class MainMenuTest: UITestCase {
// Should display loader // Should display loader
assertExists(app.staticTexts["phpman.busy.title".localized], 1) assertExists(app.staticTexts["phpman.busy.title".localized], 1)
// After loading, should display PHP 8.2, PHP 8.3, PHP 8.4 // After loading, should display various versions
assertExists(app.staticTexts["PHP 8.2"], 5) assertExists(app.staticTexts["PHP 8.2"], 5)
assertExists(app.staticTexts["PHP 8.3"]) assertExists(app.staticTexts["PHP 8.3"])
assertExists(app.staticTexts["PHP 8.4"]) assertExists(app.staticTexts["PHP 8.4"])
assertExists(app.staticTexts["PHP 8.5"])
// Should also display pre-release version // Should also display pre-release version
assertExists(app.staticTexts["PHP 8.5"]) assertExists(app.staticTexts["PHP 8.6"])
assertExists(app.staticTexts["phpman.version.prerelease".localized.uppercased()]) assertExists(app.staticTexts["phpman.version.prerelease".localized.uppercased()])
assertExists(app.staticTexts["phpman.version.available_for_installation".localized]) assertExists(app.staticTexts["phpman.version.available_for_installation".localized])
// The pre-release version should be unavailable // The pre-release version should be unavailable
assertExists(app.staticTexts["phpman.version.unavailable".localized]) assertExists(app.staticTexts["phpman.version.unavailable".localized])
// But not PHP 8.6 (yet) // But not PHP 8.7 or 9.0 yet
assertNotExists(app.staticTexts["PHP 8.6"]) assertNotExists(app.staticTexts["PHP 8.7"])
assertNotExists(app.staticTexts["PHP 9.0"])
// Also, PHP 8.4 should have an update available // Also, PHP 8.4 should have an update available
assertExists(app.staticTexts["phpman.version.has_update".localized( assertExists(app.staticTexts["phpman.version.has_update".localized(