-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[testing] Use latest simulator main #30664
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -14,14 +14,16 @@ namespace Microsoft.Maui.TestCases.Tests | |||||
| #if ANDROID | ||||||
| [TestFixture(TestDevice.Android)] | ||||||
| #elif IOSUITEST | ||||||
| [TestFixture(TestDevice.iOS)] | ||||||
| [TestFixture(TestDevice.iOS)] | ||||||
| #elif MACUITEST | ||||||
| [TestFixture(TestDevice.Mac)] | ||||||
| #elif WINTEST | ||||||
| [TestFixture(TestDevice.Windows)] | ||||||
| #endif | ||||||
| public abstract class UITest : UITestBase | ||||||
| { | ||||||
| string _defaultiOSVersion = "18.4"; | ||||||
|
|
||||||
| protected const int SetupMaxRetries = 1; | ||||||
| readonly VisualRegressionTester _visualRegressionTester; | ||||||
| readonly IImageEditorFactory _imageEditorFactory; | ||||||
|
|
@@ -241,7 +243,9 @@ but both can happen. | |||||
| var device = (string?)((AppiumApp)App).Driver.Capabilities.GetCapability("deviceName") | ||||||
| ?? throw new InvalidOperationException("deviceName capability is missing or null."); | ||||||
|
|
||||||
| if (device.Contains(" Xs", StringComparison.OrdinalIgnoreCase) && platformVersion == "18.0") | ||||||
| environmentName = "ios"; | ||||||
|
||||||
| environmentName = "ios"; |
Copilot
AI
Jul 16, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] Instead of commenting out this assertion, update the failure message to reference the new default iOS version and re-enable the Assert.Fail so unsupported simulator configurations are caught during test setup.
| //Assert.Fail($"iOS visual tests should be run on iPhone Xs (iOS {_defaultiOSVersion}) or iPhone X (iOS 16.4) simulator images, but the current device is '{deviceName}' '{platformVersion}'. Follow the steps on the MAUI UI testing wiki."); | |
| Assert.Fail($"iOS visual tests should be run on iPhone Xs (iOS {_defaultiOSVersion}) or iPhone X (iOS 16.4) simulator images, but the current device is '{deviceName}' '{platformVersion}'. Follow the steps on the MAUI UI testing wiki."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] Dropping the version suffix from
DefaultTestDevicemay break scripts that expect a versioned identifier. Consider appendingDefaultVersionor updating any downstream logic that parses this string.