Skip to content
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

Make Android visual test screenshots more deterministic #16591

Merged
merged 4 commits into from
Aug 14, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,17 @@ public CoreNavigationPage()
{
AutomationId = "NavigationPageRoot";

BarBackgroundColor = Colors.Maroon;
BarTextColor = Colors.Yellow;

On<iOS>().SetPrefersLargeTitles(true);
InitNavigationPageStyling(this);

Navigation.PushAsync(new CoreRootPage(this));
}

public static void InitNavigationPageStyling(Microsoft.Maui.Controls.NavigationPage navigationPage)
{
navigationPage.BarBackgroundColor = Colors.Maroon;
navigationPage.BarTextColor = Colors.Yellow;

navigationPage.On<iOS>().SetPrefersLargeTitles(true);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ public static NavigationPage GetTestCases()
searchBar.TextChanged += (sender, args) => SearchBarOnTextChanged(sender, args, testCaseScreen);

var page = new NavigationPage(testCasesRoot);
CoreNavigationPage.InitNavigationPageStyling(page);

if (Microsoft.Maui.Devices.DeviceInfo.Platform == Microsoft.Maui.Devices.DevicePlatform.iOS ||
Microsoft.Maui.Devices.DeviceInfo.Platform == Microsoft.Maui.Devices.DevicePlatform.Android)
Expand Down
Loading