Skip to content

Commit a73d7e5

Browse files
nivetha-nagalingamrmarinho
authored andcommitted
Added the snapshots and updated the CollectionViewTabbedPageUITests
1 parent 9b6b5ec commit a73d7e5

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed
Loading

src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/CollectionViewUITests.CollectionViewTabbedPage.cs

+3-12
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,8 @@ public class CollectionViewTabbedPageUITests : _IssuesUITest
99
const string Add1 = "Add1";
1010
const string Add2 = "Add2";
1111
const string Success = "Success";
12-
#if ANDROID
13-
const string FirstPage = "7700 FIRST PAGE";
14-
const string Tab2 = "TAB2";
15-
const string Tab3 = "TAB3";
16-
#else
17-
const string FirstPage = "7700 First Page";
1812
const string Tab2 = "Tab2";
1913
const string Tab3 = "Tab3";
20-
#endif
2114
protected override bool ResetAfterEachTest => true;
2215

2316
public CollectionViewTabbedPageUITests(TestDevice device)
@@ -32,19 +25,17 @@ public void AddingItemToUnviewedCollectionViewShouldNotCrash()
3225
{
3326
App.WaitForElement(Add1);
3427
App.Tap(Add1);
35-
App.WaitForElement(Tab2);
36-
App.Tap(Tab2);
28+
App.TapTab(Tab2);
3729
App.WaitForElementTillPageNavigationSettled(Success);
3830
}
3931

4032
[Test]
4133
[Category(UITestCategories.CollectionView)]
42-
public void AddingGroupToUnviewedGroupedCollectionViewShouldNotCrash()
34+
public void AddingGroupToUnviewedGroupedCollectionViewShouldNotCrash()
4335
{
4436
App.WaitForElement(Add2);
4537
App.Tap(Add2);
46-
App.WaitForElement(Tab3);
47-
App.Tap(Tab3);
38+
App.TapTab(Tab3);
4839
App.WaitForElementTillPageNavigationSettled(Success);
4940
}
5041
}

0 commit comments

Comments
 (0)