-
Notifications
You must be signed in to change notification settings - Fork 743
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(TabView): Verify item selection content binding
- Loading branch information
1 parent
20b4af1
commit 8fa2a49
Showing
4 changed files
with
65 additions
and
59 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
...amplesApp/SamplesApp.UITests/Microsoft_UI_Xaml_Controls/TabViewTests/Given_TabView_Uno.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,28 @@ | ||
using System; | ||
using NUnit.Framework; | ||
using SamplesApp.UITests.TestFramework; | ||
using Uno.UITest.Helpers; | ||
using Uno.UITest.Helpers.Queries; | ||
|
||
namespace SamplesApp.UITests.Microsoft_UI_Xaml_Controls.TabViewTests | ||
{ | ||
public class Given_TabView_Uno : SampleControlUITestBase | ||
{ | ||
[Test] | ||
[AutoRetry] | ||
public void SelectionContentTest() | ||
{ | ||
Run("UITests.Microsoft_UI_Xaml_Controls.TabViewTests.TabViewItemsSourceTests"); | ||
|
||
Console.WriteLine("Verify content is displayed for initially selected tab."); | ||
_app.WaitForElement("SelectButton"); | ||
_app.Tap("SelectButton"); | ||
|
||
_app.WaitForElement("ContentButton"); | ||
var contentButton = _app.Marked("ContentButton"); | ||
|
||
var result = contentButton.GetDependencyPropertyValue<string>("Content"); | ||
Assert.AreEqual("Tab 2", result); | ||
} | ||
} | ||
} |
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