diff options
Diffstat (limited to 'Xamarin.Forms.Core.iOS.UITests')
29 files changed, 76 insertions, 40 deletions
diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/ActionSheetUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/ActionSheetUITests.cs index cf03b708..0f74d6de 100644 --- a/Xamarin.Forms.Core.iOS.UITests/Tests/ActionSheetUITests.cs +++ b/Xamarin.Forms.Core.iOS.UITests/Tests/ActionSheetUITests.cs @@ -7,7 +7,7 @@ using Xamarin.UITest.Queries; namespace Xamarin.Forms.Core.UITests { [TestFixture] - [Category ("ActionSheet")] + [Category(UITestCategories.ActionSheet)] internal class ActionSheetUITests : BaseTestFixture { AppRect screenSize; diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/ActivityIndicatorUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/ActivityIndicatorUITests.cs index a2de9d52..36dd3a14 100644 --- a/Xamarin.Forms.Core.iOS.UITests/Tests/ActivityIndicatorUITests.cs +++ b/Xamarin.Forms.Core.iOS.UITests/Tests/ActivityIndicatorUITests.cs @@ -10,7 +10,7 @@ using Xamarin.UITest.Queries; namespace Xamarin.Forms.Core.UITests { [TestFixture] - [Category ("ActivityIndicator")] + [Category(UITestCategories.ActivityIndicator)] internal class ActivityIndicatorUITests : _ViewUITests { public ActivityIndicatorUITests () diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/AppearingUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/AppearingUITests.cs index c346b4fc..4b37ea9f 100644 --- a/Xamarin.Forms.Core.iOS.UITests/Tests/AppearingUITests.cs +++ b/Xamarin.Forms.Core.iOS.UITests/Tests/AppearingUITests.cs @@ -3,10 +3,9 @@ using NUnit.Framework; namespace Xamarin.Forms.Core.UITests { - [Category ("Lifecycle")] + [Category(UITestCategories.LifeCycle)] internal class AppearingUITests : BaseTestFixture { - public AppearingUITests () { ShouldResetPerFixture = false; diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/AutomationIDUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/AutomationIDUITests.cs index d397900b..4aeb5cc7 100644 --- a/Xamarin.Forms.Core.iOS.UITests/Tests/AutomationIDUITests.cs +++ b/Xamarin.Forms.Core.iOS.UITests/Tests/AutomationIDUITests.cs @@ -7,7 +7,7 @@ using Xamarin.UITest.Queries; namespace Xamarin.Forms.Core.UITests { [TestFixture] - [Category ("AutomationID")] + [Category(UITestCategories.AutomationId)] internal class AutomationIDUITests : BaseTestFixture { protected override void NavigateToGallery () diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/BoxViewUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/BoxViewUITests.cs index cf542c3e..fa9cdc29 100644 --- a/Xamarin.Forms.Core.iOS.UITests/Tests/BoxViewUITests.cs +++ b/Xamarin.Forms.Core.iOS.UITests/Tests/BoxViewUITests.cs @@ -17,7 +17,7 @@ using Xamarin.UITest.iOS; namespace Xamarin.Forms.Core.UITests { [TestFixture] - [Category ("BoxView")] + [Category(UITestCategories.BoxView)] internal class BoxViewUITests : _ViewUITests { public BoxViewUITests () diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/ButtonUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/ButtonUITests.cs index 47bb45cb..83c9cccd 100644 --- a/Xamarin.Forms.Core.iOS.UITests/Tests/ButtonUITests.cs +++ b/Xamarin.Forms.Core.iOS.UITests/Tests/ButtonUITests.cs @@ -17,7 +17,7 @@ using Xamarin.UITest.iOS; namespace Xamarin.Forms.Core.UITests { [TestFixture] - [Category ("Button")] + [Category(UITestCategories.Button)] internal class ButtonUITests : _ViewUITests { public ButtonUITests () diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/ContextActionsUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/ContextActionsUITests.cs index fc80937f..a3ae1063 100644 --- a/Xamarin.Forms.Core.iOS.UITests/Tests/ContextActionsUITests.cs +++ b/Xamarin.Forms.Core.iOS.UITests/Tests/ContextActionsUITests.cs @@ -10,7 +10,7 @@ using Xamarin.UITest.Queries; namespace Xamarin.Forms.Core.UITests { [TestFixture] - [Category ("Cells")] + [Category(UITestCategories.Cells)] internal class ContextActionsListUITests : BaseTestFixture { @@ -84,7 +84,7 @@ namespace Xamarin.Forms.Core.UITests } [TestFixture] - [Category ("Cells")] + [Category(UITestCategories.Cells)] internal class ContextActionsTableUITests : BaseTestFixture { public ContextActionsTableUITests () diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/DatePickerUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/DatePickerUITests.cs index 5769f71b..72452886 100644 --- a/Xamarin.Forms.Core.iOS.UITests/Tests/DatePickerUITests.cs +++ b/Xamarin.Forms.Core.iOS.UITests/Tests/DatePickerUITests.cs @@ -17,7 +17,7 @@ using Xamarin.UITest.iOS; namespace Xamarin.Forms.Core.UITests { [TestFixture] - [Category ("DatePicker")] + [Category(UITestCategories.DatePicker)] internal class DatePickerUITests : _ViewUITests { public DatePickerUITests () diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/DisplayAlertUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/DisplayAlertUITests.cs index 74bd8958..afefdebc 100644 --- a/Xamarin.Forms.Core.iOS.UITests/Tests/DisplayAlertUITests.cs +++ b/Xamarin.Forms.Core.iOS.UITests/Tests/DisplayAlertUITests.cs @@ -6,7 +6,7 @@ using System.Threading; namespace Xamarin.Forms.Core.UITests { [TestFixture] - [Category ("DisplayAlert")] + [Category(UITestCategories.DisplayAlert)] internal class DisplayAlertUITests : BaseTestFixture { diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/EditorUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/EditorUITests.cs index 6701faad..e407ad23 100644 --- a/Xamarin.Forms.Core.iOS.UITests/Tests/EditorUITests.cs +++ b/Xamarin.Forms.Core.iOS.UITests/Tests/EditorUITests.cs @@ -17,7 +17,7 @@ using Xamarin.UITest.iOS; namespace Xamarin.Forms.Core.UITests { [TestFixture] - [Category ("Editor")] + [Category(UITestCategories.Editor)] internal class EditorUITests : _ViewUITests { public EditorUITests () diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/EntryUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/EntryUITests.cs index 6d498b59..82ee605b 100644 --- a/Xamarin.Forms.Core.iOS.UITests/Tests/EntryUITests.cs +++ b/Xamarin.Forms.Core.iOS.UITests/Tests/EntryUITests.cs @@ -17,7 +17,7 @@ using Xamarin.UITest.iOS; namespace Xamarin.Forms.Core.UITests { [TestFixture] - [Category ("Entry")] + [Category(UITestCategories.Entry)] internal class EntryUITests : _ViewUITests { public EntryUITests () diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/FrameUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/FrameUITests.cs index f7a59ed5..035e3f70 100644 --- a/Xamarin.Forms.Core.iOS.UITests/Tests/FrameUITests.cs +++ b/Xamarin.Forms.Core.iOS.UITests/Tests/FrameUITests.cs @@ -17,7 +17,7 @@ using Xamarin.UITest.iOS; namespace Xamarin.Forms.Core.UITests { [TestFixture] - [Category ("Frame")] + [Category(UITestCategories.Frame)] internal class FrameUITests : _ViewUITests { public FrameUITests () diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/ImageUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/ImageUITests.cs index 5c19d1cb..cdf9af61 100644 --- a/Xamarin.Forms.Core.iOS.UITests/Tests/ImageUITests.cs +++ b/Xamarin.Forms.Core.iOS.UITests/Tests/ImageUITests.cs @@ -17,7 +17,7 @@ using Xamarin.UITest.iOS; namespace Xamarin.Forms.Core.UITests { [TestFixture] - [Category ("Image")] + [Category(UITestCategories.Image)] internal class ImageUITests : _ViewUITests { public ImageUITests () diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/LabelUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/LabelUITests.cs index 423774fd..2a011878 100644 --- a/Xamarin.Forms.Core.iOS.UITests/Tests/LabelUITests.cs +++ b/Xamarin.Forms.Core.iOS.UITests/Tests/LabelUITests.cs @@ -17,7 +17,7 @@ using Xamarin.UITest.iOS; namespace Xamarin.Forms.Core.UITests { [TestFixture] - [Category ("Label")] + [Category(UITestCategories.Label)] internal class LabelUITests : _ViewUITests { public LabelUITests () diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-CellsUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-CellsUITests.cs index 4710c336..4d7ec9d0 100644 --- a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-CellsUITests.cs +++ b/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-CellsUITests.cs @@ -13,7 +13,7 @@ using Xamarin.UITest.Queries; namespace Xamarin.Forms.Core.UITests { [TestFixture] - [Category("Cells")] + [Category(UITestCategories.Cells)] internal class CellsGalleryTests : BaseTestFixture { // TODO find a way to test individula elements of cells diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/PickerUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/PickerUITests.cs index 19357fad..f0bd20a1 100644 --- a/Xamarin.Forms.Core.iOS.UITests/Tests/PickerUITests.cs +++ b/Xamarin.Forms.Core.iOS.UITests/Tests/PickerUITests.cs @@ -17,7 +17,7 @@ using Xamarin.UITest.iOS; namespace Xamarin.Forms.Core.UITests { [TestFixture] - [Category ("Picker")] + [Category(UITestCategories.Picker)] internal class PickerUITests : _ViewUITests { public PickerUITests () diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/ProgressBarUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/ProgressBarUITests.cs index 5d95145c..aa0b7136 100644 --- a/Xamarin.Forms.Core.iOS.UITests/Tests/ProgressBarUITests.cs +++ b/Xamarin.Forms.Core.iOS.UITests/Tests/ProgressBarUITests.cs @@ -17,7 +17,7 @@ using Xamarin.UITest.iOS; namespace Xamarin.Forms.Core.UITests { [TestFixture] - [Category ("ProgressBar")] + [Category(UITestCategories.ProgressBar)] internal class ProgressBarUITests : _ViewUITests { public ProgressBarUITests () diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/RootGalleryUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/RootGalleryUITests.cs index e597809f..1089b337 100644 --- a/Xamarin.Forms.Core.iOS.UITests/Tests/RootGalleryUITests.cs +++ b/Xamarin.Forms.Core.iOS.UITests/Tests/RootGalleryUITests.cs @@ -25,7 +25,7 @@ namespace Xamarin.Forms.Core.UITests } [TestFixture] - [Category ("RootGallery")] + [Category(UITestCategories.RootGallery)] internal class RootGalleryUITests : BaseTestFixture { IEnumerable<RootPageModel> rootPages; diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/ScrollViewUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/ScrollViewUITests.cs index 2266c26e..3319834a 100644 --- a/Xamarin.Forms.Core.iOS.UITests/Tests/ScrollViewUITests.cs +++ b/Xamarin.Forms.Core.iOS.UITests/Tests/ScrollViewUITests.cs @@ -4,7 +4,7 @@ using Xamarin.UITest; namespace Xamarin.Forms.Core.UITests { [TestFixture] - [Category ("ScrollView")] + [Category(UITestCategories.ScrollView)] internal class ScrollViewGalleryTests : BaseTestFixture { public ScrollViewGalleryTests () diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/SearchBarUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/SearchBarUITests.cs index e45ba385..9f9f3e97 100644 --- a/Xamarin.Forms.Core.iOS.UITests/Tests/SearchBarUITests.cs +++ b/Xamarin.Forms.Core.iOS.UITests/Tests/SearchBarUITests.cs @@ -17,7 +17,7 @@ using Xamarin.UITest.iOS; namespace Xamarin.Forms.Core.UITests { [TestFixture] - [Category ("SearchBar")] + [Category(UITestCategories.SearchBar)] internal class SearchBarUITests : _ViewUITests { public SearchBarUITests () diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/SliderUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/SliderUITests.cs index 6f8eb775..c726903b 100644 --- a/Xamarin.Forms.Core.iOS.UITests/Tests/SliderUITests.cs +++ b/Xamarin.Forms.Core.iOS.UITests/Tests/SliderUITests.cs @@ -17,7 +17,7 @@ using Xamarin.UITest.iOS; namespace Xamarin.Forms.Core.UITests { [TestFixture] - [Category ("Slider")] + [Category(UITestCategories.Slider)] internal class SliderUITests : _ViewUITests { public SliderUITests () diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/StepperUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/StepperUITests.cs index bec1e22e..3afd1e6e 100644 --- a/Xamarin.Forms.Core.iOS.UITests/Tests/StepperUITests.cs +++ b/Xamarin.Forms.Core.iOS.UITests/Tests/StepperUITests.cs @@ -17,7 +17,8 @@ using Xamarin.UITest.iOS; namespace Xamarin.Forms.Core.UITests { [TestFixture] - [Category ("Stepper")] + + [Category(UITestCategories.Stepper)] internal class StepperUITests : _ViewUITests { public StepperUITests () diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/SwitchUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/SwitchUITests.cs index 344aae4a..d7896d4a 100644 --- a/Xamarin.Forms.Core.iOS.UITests/Tests/SwitchUITests.cs +++ b/Xamarin.Forms.Core.iOS.UITests/Tests/SwitchUITests.cs @@ -17,7 +17,7 @@ using Xamarin.UITest.iOS; namespace Xamarin.Forms.Core.UITests { [TestFixture] - [Category ("Switch")] + [Category(UITestCategories.Switch)] internal class SwitchUITests : _ViewUITests { public SwitchUITests () diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/TimePickerUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/TimePickerUITests.cs index 63e6a29e..954e8247 100644 --- a/Xamarin.Forms.Core.iOS.UITests/Tests/TimePickerUITests.cs +++ b/Xamarin.Forms.Core.iOS.UITests/Tests/TimePickerUITests.cs @@ -17,7 +17,7 @@ using Xamarin.UITest.iOS; namespace Xamarin.Forms.Core.UITests { [TestFixture] - [Category ("TimePicker")] + [Category(UITestCategories.TimePicker)] internal class TimePickerUITests : _ViewUITests { public TimePickerUITests () diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/ToolbarItemTests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/ToolbarItemTests.cs index eddc20c2..30cabffd 100644 --- a/Xamarin.Forms.Core.iOS.UITests/Tests/ToolbarItemTests.cs +++ b/Xamarin.Forms.Core.iOS.UITests/Tests/ToolbarItemTests.cs @@ -7,7 +7,7 @@ using Xamarin.UITest.iOS; namespace Xamarin.Forms.Core.UITests { [TestFixture] - [Category ("ToolbarItem")] + [Category(UITestCategories.ToolbarItem)] internal class ToolbarItemTests : BaseTestFixture { string btn1Id = "tb1"; diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/ViewUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/ViewUITests.cs index 7cfbe550..a7a13017 100644 --- a/Xamarin.Forms.Core.iOS.UITests/Tests/ViewUITests.cs +++ b/Xamarin.Forms.Core.iOS.UITests/Tests/ViewUITests.cs @@ -213,7 +213,7 @@ namespace Xamarin.Forms.Core.UITests [Test] [UiTest (typeof (VisualElement), "TranslationX")] - [Category ("ManualReview")] + [Category(UITestCategories.ManualReview)] public virtual void _TranslationX () { var remote = new ViewContainerRemote (App, Test.VisualElement.TranslationX, PlatformViewType); @@ -222,7 +222,7 @@ namespace Xamarin.Forms.Core.UITests [Test] [UiTest (typeof (VisualElement), "TranslationY")] - [Category ("ManualReview")] + [Category(UITestCategories.ManualReview)] public virtual void _TranslationY () { var remote = new ViewContainerRemote (App, Test.VisualElement.TranslationY, PlatformViewType); diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/WebViewUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/WebViewUITests.cs index c52693a0..e056b325 100644 --- a/Xamarin.Forms.Core.iOS.UITests/Tests/WebViewUITests.cs +++ b/Xamarin.Forms.Core.iOS.UITests/Tests/WebViewUITests.cs @@ -17,7 +17,7 @@ using Xamarin.UITest.iOS; namespace Xamarin.Forms.Core.UITests { [TestFixture] - [Category ("WebView")] + [Category(UITestCategories.WebView)] internal class WebViewUITests : _ViewUITests { public WebViewUITests () @@ -29,15 +29,15 @@ namespace Xamarin.Forms.Core.UITests { App.NavigateToGallery (GalleryQueries.WebViewGallery); } - - [Category ("ManualReview")] + + [Category(UITestCategories.ManualReview)] public override void _IsEnabled () { Assert.Inconclusive ("Does not make sense for WebView"); } [Test] - [Category ("ManualReview")] + [Category(UITestCategories.ManualReview)] [Ignore("Keep empty test from failing in Test Cloud")] public override void _IsVisible () {} @@ -51,38 +51,38 @@ namespace Xamarin.Forms.Core.UITests public override void _IsFocused () {} [Test] - [Category ("ManualReview")] + [Category(UITestCategories.ManualReview)] [Ignore("Keep empty test from failing in Test Cloud")] public override void _Opacity () {} [Test] - [Category ("ManualReview")] + [Category(UITestCategories.ManualReview)] [Ignore("Keep empty test from failing in Test Cloud")] public override void _Rotation () {} [Test] - [Category ("ManualReview")] + [Category(UITestCategories.ManualReview)] [Ignore("Keep empty test from failing in Test Cloud")] public override void _RotationX () {} [Test] - [Category ("ManualReview")] + [Category(UITestCategories.ManualReview)] [Ignore("Keep empty test from failing in Test Cloud")] public override void _RotationY () {} [Test] - [Category ("ManualReview")] + [Category(UITestCategories.ManualReview)] [Ignore("Keep empty test from failing in Test Cloud")] public override void _TranslationX () {} [Test] - [Category ("ManualReview")] + [Category(UITestCategories.ManualReview)] [Ignore("Keep empty test from failing in Test Cloud")] public override void _TranslationY () {} [Test] - [Category ("ManualReview")] + [Category (UITestCategories.ManualReview)] [Ignore("Keep empty test from failing in Test Cloud")] public override void _Scale () {} diff --git a/Xamarin.Forms.Core.iOS.UITests/UITestCategories.cs b/Xamarin.Forms.Core.iOS.UITests/UITestCategories.cs new file mode 100644 index 00000000..dbc298f6 --- /dev/null +++ b/Xamarin.Forms.Core.iOS.UITests/UITestCategories.cs @@ -0,0 +1,35 @@ +namespace Xamarin.Forms.Core.UITests +{ + internal static class UITestCategories + { + public const string ActionSheet = "ActionSheet"; + public const string ActivityIndicator = "ActivityIndicator"; + public const string AutomationId = "AutomationID"; + public const string BoxView = "BoxView"; + public const string Button = "Button"; + public const string Cells = "Cells"; + public const string DatePicker = "DatePicker"; + public const string DisplayAlert = "DisplayAlert"; + public const string Editor = "Editor"; + public const string Entry = "Entry"; + public const string Frame = "Frame"; + public const string Image = "Image"; + public const string Label = "Label"; + public const string ListView = "ListView"; + public const string LifeCycle = "Lifecycle"; + public const string MasterDetailPage = "MasterDetailPage"; + public const string Picker = "Picker"; + public const string ProgressBar = "ProgressBar"; + public const string RootGallery = "RootGallery"; + public const string ScrollView = "ScrollView"; + public const string SearchBar = "SearchBar"; + public const string Slider = "Slider"; + public const string Stepper = "Stepper"; + public const string Switch = "Switch"; + public const string TimePicker = "TimePicker"; + public const string ToolbarItem = "ToolbarItem"; + public const string WebView = "WebView"; + + public const string ManualReview = "ManualReview"; + } +}
\ No newline at end of file diff --git a/Xamarin.Forms.Core.iOS.UITests/Xamarin.Forms.Core.iOS.UITests.csproj b/Xamarin.Forms.Core.iOS.UITests/Xamarin.Forms.Core.iOS.UITests.csproj index 6d49ae63..42ac29ec 100644 --- a/Xamarin.Forms.Core.iOS.UITests/Xamarin.Forms.Core.iOS.UITests.csproj +++ b/Xamarin.Forms.Core.iOS.UITests/Xamarin.Forms.Core.iOS.UITests.csproj @@ -64,6 +64,7 @@ </ItemGroup> <ItemGroup> <Compile Include="BaseTestFixture.cs" /> + <Compile Include="UITestCategories.cs" /> <Compile Include="PlatformQueries.cs" /> <Compile Include="Remotes\BaseViewContainerRemote.cs" /> <Compile Include="Remotes\EventViewContainerRemote.cs" /> |