Skip to content

Commit

Permalink
use is AndroidApp for _androidContextMenuOverflowButton
Browse files Browse the repository at this point in the history
  • Loading branch information
brminnick committed Mar 23, 2020
1 parent e17edea commit b94453a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion GitTrends.UITests/Pages/RepositoryPage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using GitTrends.Shared;
using Newtonsoft.Json;
using Xamarin.UITest;
using Xamarin.UITest.Android;
using Query = System.Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppQuery>;

namespace GitTrends.UITests
Expand Down Expand Up @@ -64,7 +65,7 @@ public void EnterSearchBarText(string text)

public void TapSettingsButton()
{
if (App.Query(_androidContextMenuOverflowButton).Any())
if (App is AndroidApp)
{
App.Tap(_androidContextMenuOverflowButton);
App.Screenshot("Android Overflow Button Tapped");
Expand Down
3 changes: 2 additions & 1 deletion GitTrends.UITests/Pages/TrendsPage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using GitTrends.Mobile.Shared;
using Newtonsoft.Json;
using Xamarin.UITest;
using Xamarin.UITest.Android;
using Query = System.Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppQuery>;

namespace GitTrends.UITests
Expand Down Expand Up @@ -81,7 +82,7 @@ public override Task WaitForPageToLoad(TimeSpan? timespan = null)

public void TapReferringSitesButton()
{
if (App.Query(_androidContextMenuOverflowButton).Any())
if (App is AndroidApp)
{
App.Tap(_androidContextMenuOverflowButton);
App.Screenshot("Android Overflow Button Tapped");
Expand Down

0 comments on commit b94453a

Please sign in to comment.