Our most common target is Github again. Also added back the UITestCategories to make it easier to remember to add them.
This commit is contained in:
Samantha Houts 2018-07-13 16:02:11 -07:00
Родитель f390b64630
Коммит 0c1127aba0
1 изменённых файлов: 8 добавлений и 3 удалений

Просмотреть файл

@ -2,15 +2,19 @@
using Xamarin.Forms.Internals;
#if UITEST
using Xamarin.Forms.Core.UITests;
using Xamarin.UITest;
using NUnit.Framework;
#endif
namespace Xamarin.Forms.Controls.Issues
{
#if UITEST
[Category(UITestCategories.ManualReview)]
#endif
[Preserve(AllMembers = true)]
[Issue(IssueTracker.Bugzilla, 1, "Issue Description", PlatformAffected.Default)]
public class Bugzilla1 : TestContentPage // or TestMasterDetailPage, etc ...
[Issue(IssueTracker.Github, 1, "Issue Description", PlatformAffected.Default)]
public class Issue1 : TestContentPage // or TestMasterDetailPage, etc ...
{
protected override void Init()
{
@ -24,8 +28,9 @@ namespace Xamarin.Forms.Controls.Issues
#if UITEST
[Test]
public void Issue1Test ()
public void Issue1Test()
{
// Delete this and all other UITEST sections if there is no way to automate the test. Otherwise, be sure to rename the test and update the Category attribute on the class. Note that you can add multiple categories.
RunningApp.Screenshot ("I am at Issue 1");
RunningApp.WaitForElement (q => q.Marked ("IssuePageLabel"));
RunningApp.Screenshot ("I see the Label");