Skip to content

Commit

Permalink
chore: Adjust test for Skia
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinZikmund committed Feb 15, 2025
1 parent 37ab0ec commit 91d1521
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ public async Task When_Default_Flyout_Date()

await WindowHelper.WaitFor(() => VisualTreeHelper.GetOpenPopupsForXamlRoot(datePicker.XamlRoot).Count > 0);
var popup = VisualTreeHelper.GetOpenPopupsForXamlRoot(datePicker.XamlRoot).First();
var child = popup.Child;
var calendarView = VisualTreeUtils.FindVisualChildByType<CalendarView>(child);
var child = (FlyoutPresenter)popup.Child;
var calendarView = (CalendarView)child.Content;
Assert.AreEqual(now.Day, calendarView.m_lastDisplayedDate.Day);
Assert.AreEqual(now.Month, calendarView.m_lastDisplayedDate.Month);
Assert.AreEqual(now.Year, calendarView.m_lastDisplayedDate.Year);
Expand Down

0 comments on commit 91d1521

Please sign in to comment.