-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
73 additions
and
4 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
Binary file modified
BIN
+28.2 KB
(460%)
...tests/TestCases.Android.Tests/snapshots/android/ToolbarItemsShouldBeVisible.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions
21
src/Controls/tests/TestCases.HostApp/Issues/Issue18946.xaml
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<Shell xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
x:Class="Maui.Controls.Sample.Issues.Issue18946"> | ||
<Shell.TitleView> | ||
<HorizontalStackLayout Margin="10" HorizontalOptions="Center" VerticalOptions="Fill" > | ||
<Image AutomationId="image" Source="small_dotnet_bot.png" HeightRequest="48" WidthRequest="48" /> | ||
<Label VerticalOptions="Center" VerticalTextAlignment="Center" Text="Maui App" FontSize="20" /> | ||
</HorizontalStackLayout> | ||
</Shell.TitleView> | ||
|
||
<Shell.ToolbarItems> | ||
<ToolbarItem Text="Hello"/> | ||
</Shell.ToolbarItems> | ||
|
||
<ShellContent Title="Home" Route="MainPage"> | ||
<ContentPage> | ||
<Label Text="Hello, MAUI!" AutomationId="label"/> | ||
</ContentPage> | ||
</ShellContent> | ||
</Shell> |
16 changes: 16 additions & 0 deletions
16
src/Controls/tests/TestCases.HostApp/Issues/Issue18946.xaml.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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using Microsoft.Maui.Controls; | ||
using Microsoft.Maui.Controls.Xaml; | ||
|
||
namespace Maui.Controls.Sample.Issues | ||
{ | ||
[XamlCompilation(XamlCompilationOptions.Compile)] | ||
[Issue(IssueTracker.Github, 18946, "Shell Toolbar items not displayed", PlatformAffected.All)] | ||
public partial class Issue18946 : Shell | ||
{ | ||
public Issue18946() | ||
{ | ||
InitializeComponent(); | ||
} | ||
} | ||
|
||
} |
24 changes: 24 additions & 0 deletions
24
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue18946.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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using NUnit.Framework; | ||
using UITest.Appium; | ||
using UITest.Core; | ||
|
||
namespace Microsoft.Maui.TestCases.Tests.Issues | ||
{ | ||
public class Issue18946 : _IssuesUITest | ||
{ | ||
public override string Issue => "Shell Toolbar items not displayed"; | ||
|
||
public Issue18946(TestDevice device) : base(device) | ||
{ } | ||
|
||
[Test] | ||
[Category(UITestCategories.Shell)] | ||
public void ToolbarItemsShouldBeVisible() | ||
{ | ||
_ = App.WaitForElement("label"); | ||
|
||
// The test passes if the text 'hello' is visible in the toolbar | ||
VerifyScreenshot(); | ||
} | ||
} | ||
} |
Binary file added
BIN
+38.2 KB
...ontrols/tests/TestCases.iOS.Tests/snapshots/ios/ToolbarItemsShouldBeVisible.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.