From 6c34f68d25136d09e592443c2656a8958ff69459 Mon Sep 17 00:00:00 2001 From: Nico Verbruggen Date: Sat, 6 Dec 2025 12:30:42 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Fix=20UI=20test=20now=20that=20PHP?= =?UTF-8?q?=208.6=20is=20included?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/ui/MainMenuTest.swift | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/ui/MainMenuTest.swift b/tests/ui/MainMenuTest.swift index 1a70ea5f..1b308908 100644 --- a/tests/ui/MainMenuTest.swift +++ b/tests/ui/MainMenuTest.swift @@ -92,21 +92,23 @@ final class MainMenuTest: UITestCase { // Should display loader 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.3"]) assertExists(app.staticTexts["PHP 8.4"]) + assertExists(app.staticTexts["PHP 8.5"]) // 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.available_for_installation".localized]) // The pre-release version should be unavailable assertExists(app.staticTexts["phpman.version.unavailable".localized]) - // But not PHP 8.6 (yet) - assertNotExists(app.staticTexts["PHP 8.6"]) + // But not PHP 8.7 or 9.0 yet + assertNotExists(app.staticTexts["PHP 8.7"]) + assertNotExists(app.staticTexts["PHP 9.0"]) // Also, PHP 8.4 should have an update available assertExists(app.staticTexts["phpman.version.has_update".localized(