Skip to content

Commit c162cf9

Browse files
TamilarasanSF4853PureWeen
authored andcommitted
[Testing] Fixed Test case failure in PR 30696 - [07/21/2025] Candidate (#30711)
* added new snapshots * updated test cases * updated iOS snapshot
1 parent c869ee0 commit c162cf9

File tree

5 files changed

+19
-1
lines changed

5 files changed

+19
-1
lines changed
72.6 KB
Loading

src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/DatePickerFeatureTests.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,8 @@ public void DatePicker_SetFontSizeAndFormat_VerifyVisualState()
291291
App.WaitForElement("Apply");
292292
App.Tap("Apply");
293293
App.WaitForElementTillPageNavigationSettled("DatePickerControl");
294+
App.WaitForElement("CultureFormatLabel");
295+
App.Tap("CultureFormatLabel");
294296
VerifyScreenshot();
295297
}
296298
#endif
@@ -360,6 +362,8 @@ public void DatePicker_SetMinimumDateAndDate_VerifyVisualState()
360362
App.WaitForElement("Apply");
361363
App.Tap("Apply");
362364
App.WaitForElementTillPageNavigationSettled("DatePickerControl");
365+
App.WaitForElement("CultureFormatLabel");
366+
App.Tap("CultureFormatLabel");
363367
VerifyScreenshot();
364368
}
365369

@@ -382,6 +386,8 @@ public void DatePicker_SetMaximumDateAndDate_VerifyVisualState()
382386
App.WaitForElement("Apply");
383387
App.Tap("Apply");
384388
App.WaitForElementTillPageNavigationSettled("DatePickerControl");
389+
App.WaitForElement("CultureFormatLabel");
390+
App.Tap("CultureFormatLabel");
385391
VerifyScreenshot();
386392
}
387393

@@ -502,6 +508,8 @@ public void DatePicker_SetFontSizeAndFormat_f_VerifyVisualState()
502508
App.WaitForElement("Apply");
503509
App.Tap("Apply");
504510
App.WaitForElementTillPageNavigationSettled("DatePickerControl");
511+
App.WaitForElement("CultureFormatLabel");
512+
App.Tap("CultureFormatLabel");
505513
VerifyScreenshot();
506514
}
507515
#endif

src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/SearchBarFeatureTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,9 @@ public void SearchBar_SetFontSizeAndPlaceholder_VerifyVisualState()
266266
App.WaitForElement("Apply");
267267
App.Tap("Apply");
268268
App.WaitForElementTillPageNavigationSettled("SearchBar");
269+
#if WINDOWS // For maintaining consistency between .NET 9.0 and .NET 10.0
270+
App.Tap("SearchBar");
271+
#endif
269272
VerifyScreenshotWithPlatformCropping();
270273
}
271274

src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/TimePickerFeatureTests.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,8 @@ public void TimePicker_SetFontAttributesAndFormat_VerifyVisualState()
220220
App.WaitForElement("Apply");
221221
App.Tap("Apply");
222222
App.WaitForElementTillPageNavigationSettled("TimePickerControl");
223+
App.WaitForElement("CultureFormatLabel");
224+
App.Tap("CultureFormatLabel");
223225
VerifyScreenshot();
224226
}
225227
#endif
@@ -267,6 +269,8 @@ public void TimePicker_SetFontFamilyAndFormat_VerifyVisualState()
267269
App.WaitForElement("Apply");
268270
App.Tap("Apply");
269271
App.WaitForElementTillPageNavigationSettled("TimePickerControl");
272+
App.WaitForElement("CultureFormatLabel");
273+
App.Tap("CultureFormatLabel");
270274
VerifyScreenshot();
271275
}
272276
#endif
@@ -290,6 +294,8 @@ public void TimePicker_SetFontSizeAndFormat_VerifyVisualState()
290294
App.WaitForElement("Apply");
291295
App.Tap("Apply");
292296
App.WaitForElementTillPageNavigationSettled("TimePickerControl");
297+
App.WaitForElement("CultureFormatLabel");
298+
App.Tap("CultureFormatLabel");
293299
VerifyScreenshot();
294300
}
295301
#endif
@@ -442,6 +448,8 @@ public void TimePicker_SetFormat_T_WithFontSize_VerifyVisualState()
442448
App.WaitForElement("Apply");
443449
App.Tap("Apply");
444450
App.WaitForElementTillPageNavigationSettled("TimePickerControl");
451+
App.WaitForElement("CultureFormatLabel");
452+
App.Tap("CultureFormatLabel");
445453
VerifyScreenshot();
446454
}
447455
#endif

src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue29937.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ public void SettingSelectedItemAndItemSourceShouldNotCrash()
1919
{
2020
App.WaitForElement("MauiButton");
2121
App.Tap("MauiButton");
22-
App.WaitForNoElement("MauiCollectionView");
2322
App.WaitForElement("MauiButton"); // If app doesn't crash, test passes.
2423
}
2524
}

0 commit comments

Comments
 (0)