Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Create a specific XAML page for the ShellPageWrapper used for Shell Navigation #11766

Merged
merged 5 commits into from
Aug 24, 2020

Conversation

PureWeen
Copy link
Contributor

Description of Change

  • Convert the Shell holder page for frame navigation to a XAML page because it appears that when in release mode that's required
  • Change the Windows UI Tests to build and deploy using a release build with native tool chain bits

Issues Resolved

Platforms Affected

  • UWP

Testing Procedure

  • UI Tests pass
  • Control GAllery deploys in release mode and works

PR Checklist

  • Targets the correct branch
  • Tests are passing (or failures are unrelated)

@samhouts samhouts added ControlGallery p/UWP a/shell 🐚 4.8.0 regression on 4.8.0 blocker Issue blocks next stable release. Prioritize fixing and reviewing this issue. i/regression t/bug 🐛 labels Aug 12, 2020
@@ -19,6 +19,8 @@ public static IApp ConfigureApp()
{
if (Session == null)
Session = CreateWindowsDriver();
else
Reset();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If user gets here but the app is already running then they want it reset to the first page. This is how android/ios work

@@ -573,7 +581,19 @@ public CoreRootPage(Page rootPage, NavigationBehavior navigationBehavior = Navig
Command = new Command(async () =>
{
if (!string.IsNullOrEmpty(searchBar.Text))
await corePageView.PushPage(searchBar.Text);
{
if(!(await corePageView.PushPage(searchBar.Text)))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the gallery code added is to enable navigating to store shell from the root page of the gallery

@@ -193,12 +193,12 @@ steps:
TargetFolder: ${{ parameters.artifactsTargetFolder }}

- script: build.cmd -Target cg-uwp-build-tests -ScriptArgs '-BUILD_CONFIGURATION="$(BuildConfiguration)"'
condition: eq(variables['BuildConfiguration'], 'Debug')
condition: and(eq(variables['BuildConfiguration'], 'Release'), ne('${{ parameters.includePages }}', true))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

none of these steps are useful to the pages build lane

.WithRestore()
);

MSBuild("Xamarin.Forms.Core.Windows.UITests\\Xamarin.Forms.Core.Windows.UITests.csproj",
GetMSBuildSettings().WithRestore());
GetMSBuildSettings(buildConfiguration:"Debug").WithRestore());
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no reason to build the UI Tests themselves with a release configuration

@PureWeen
Copy link
Contributor Author

Test failures unrelated

@PureWeen
Copy link
Contributor Author

iOS and Android failures unrelated

@samhouts samhouts merged commit f32b5ea into 4.8.0 Aug 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
4.8.0 regression on 4.8.0 a/shell 🐚 blocker Issue blocks next stable release. Prioritize fixing and reviewing this issue. ControlGallery i/regression p/UWP t/bug 🐛
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants