This repository was archived by the owner on May 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
1 parent
ab86f93
commit 3cd8fcb
Showing
3 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
Xamarin.Forms.Core.UITests.Shared/Tests/ExpanderViewUITests.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,37 @@ | ||
using NUnit.Framework; | ||
|
||
namespace Xamarin.Forms.Core.UITests | ||
{ | ||
[Category(UITestCategories.ExpanderView)] | ||
internal class ExpanderViewUITests : BaseTestFixture | ||
{ | ||
protected override void NavigateToGallery() | ||
{ | ||
App.NavigateToGallery("* marked:'Expander Gallery'"); | ||
} | ||
|
||
[TestCase] | ||
public void ExpanderView() | ||
{ | ||
App.WaitForElement("The Second", ""); | ||
App.Tap("Expander Level 2"); | ||
App.WaitForElement("Hi, I am Red", "View didn't expand the second level"); | ||
App.Tap("The Fourth"); | ||
|
||
App.WaitForNoElement("Hi, I am Red", "View didn't collapse like is should"); | ||
|
||
App.WaitForElement("Expander Level 2", "Fourth view didn't expand to show 'Expander level 2'"); | ||
App.Tap("Expander Level 2"); | ||
App.WaitForElement("Hi, I am Red", "Expander level 2 of Fourth view didn't expand like it should."); | ||
App.Tap("Expander Level 2"); | ||
|
||
App.WaitForNoElement("Hi, I am Red", "View didn't collapse like is should"); | ||
|
||
App.Tap("The Fourth"); | ||
|
||
App.WaitForNoElement("Expander Level 2", "View didn't collapse like is should"); | ||
|
||
App.Back(); | ||
} | ||
} | ||
} |
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