forked from dotnet/maui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…otnet#25178) * Enabling ported ui tests from Xamarin.UITests to appium * Build fixes * Update Bugzilla32040.cs * Update Bugzilla32148.cs * Removed unnecessary code * Update Bugzilla25662.cs * Update Bugzilla26171.cs * Update Bugzilla26501.cs * Update Bugzilla28001.cs * Update Bugzilla30317.cs * Update Bugzilla32462.cs * Update Bugzilla33870.cs * Some fixes * More changes * More changes * Simplified more tests * Fix build * Simplified tests * Fixed test * Added new project constants * More changes * More fixes --------- Co-authored-by: Shane Neuville <[email protected]>
- Loading branch information
1 parent
8f0e4d1
commit 734c3d2
Showing
33 changed files
with
556 additions
and
442 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 21 additions & 13 deletions
34
src/Controls/tests/TestCases.HostApp/Issues/Bugzilla/Bugzilla26233.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 32 additions & 21 deletions
53
src/Controls/tests/TestCases.HostApp/Issues/Bugzilla/Bugzilla27731.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,46 @@ | ||
#if ANDROID | ||
namespace Maui.Controls.Sample.Issues; | ||
|
||
[Issue(IssueTracker.Bugzilla, 27731, "[Android] Action Bar can not be controlled reliably on FlyoutPage", PlatformAffected.Android)] | ||
public class Bugzilla27731 : TestFlyoutPage | ||
public class Bugzilla27731 : NavigationPage | ||
{ | ||
string _pageTitle = "PageTitle"; | ||
protected override void Init() | ||
public Bugzilla27731() | ||
{ | ||
// Initialize ui here instead of ctor | ||
Flyout = new ContentPage { Content = new Label { Text = "Menu Item" }, Title = "Menu" }; | ||
Detail = new NavigationPage(new Page2(_pageTitle) | ||
{ | ||
AutomationId = _pageTitle | ||
}); | ||
Navigation.PushAsync(new MainPage()); | ||
} | ||
|
||
class Page2 : ContentPage | ||
public class MainPage : TestFlyoutPage | ||
{ | ||
static int count; | ||
public Page2(string title) | ||
string _pageTitle = "PageTitle"; | ||
|
||
protected override void Init() | ||
{ | ||
count++; | ||
Title = $"{title}{count}"; | ||
NavigationPage.SetHasNavigationBar(this, false); | ||
Content = new StackLayout | ||
// Initialize ui here instead of ctor | ||
Flyout = new ContentPage { Content = new Label { Text = "Menu Item" }, Title = "Menu" }; | ||
Detail = new NavigationPage(new Page2(_pageTitle) | ||
{ | ||
Children = | ||
AutomationId = _pageTitle | ||
}); | ||
} | ||
|
||
class Page2 : ContentPage | ||
{ | ||
static int count; | ||
public Page2(string title) | ||
{ | ||
new Label { Text = $"This is page {count}." }, | ||
new Button { Text = "Click", AutomationId = "Click", Command = new Command(() => Navigation.PushAsync(new Page2(title))) } | ||
count++; | ||
Title = $"{title}{count}"; | ||
NavigationPage.SetHasNavigationBar(this, false); | ||
Content = new StackLayout | ||
{ | ||
Children = | ||
{ | ||
new Label { Text = $"This is page {count}." }, | ||
new Button { Text = "Click", AutomationId = "Click", Command = new Command(() => Navigation.PushAsync(new Page2(title))) } | ||
} | ||
}; | ||
} | ||
}; | ||
} | ||
} | ||
} | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.