From bb52d27804156d42f2b6ea70b4d62d8b3d517ee5 Mon Sep 17 00:00:00 2001 From: Ramez Ragaa Date: Thu, 21 Nov 2024 17:15:56 +0200 Subject: [PATCH] test: add a ui test for x:uid --- .../SamplesApp.Shared/Strings/en/Resources.resw | 3 +++ .../UITests.Shared/Resources/XuidGeneratorError.xaml | 9 +++++++++ .../Resources/XuidGeneratorError.xaml.cs | 10 ++++++++++ src/SamplesApp/UITests.Shared/UITests.Shared.projitems | 7 +++++++ 4 files changed, 29 insertions(+) create mode 100644 src/SamplesApp/UITests.Shared/Resources/XuidGeneratorError.xaml create mode 100644 src/SamplesApp/UITests.Shared/Resources/XuidGeneratorError.xaml.cs diff --git a/src/SamplesApp/SamplesApp.Shared/Strings/en/Resources.resw b/src/SamplesApp/SamplesApp.Shared/Strings/en/Resources.resw index 2802be19907a..15656b985fb6 100644 --- a/src/SamplesApp/SamplesApp.Shared/Strings/en/Resources.resw +++ b/src/SamplesApp/SamplesApp.Shared/Strings/en/Resources.resw @@ -147,4 +147,7 @@ Uno Platform + + SomeValue + diff --git a/src/SamplesApp/UITests.Shared/Resources/XuidGeneratorError.xaml b/src/SamplesApp/UITests.Shared/Resources/XuidGeneratorError.xaml new file mode 100644 index 000000000000..2e780d2db303 --- /dev/null +++ b/src/SamplesApp/UITests.Shared/Resources/XuidGeneratorError.xaml @@ -0,0 +1,9 @@ + + + + + diff --git a/src/SamplesApp/UITests.Shared/Resources/XuidGeneratorError.xaml.cs b/src/SamplesApp/UITests.Shared/Resources/XuidGeneratorError.xaml.cs new file mode 100644 index 000000000000..2e686ae2a693 --- /dev/null +++ b/src/SamplesApp/UITests.Shared/Resources/XuidGeneratorError.xaml.cs @@ -0,0 +1,10 @@ +using Microsoft.UI.Xaml.Controls; + +namespace UITests.Shared.Resources; +public sealed partial class XuidGeneratorError : ContentDialog +{ + public XuidGeneratorError() + { + this.InitializeComponent(); + } +} diff --git a/src/SamplesApp/UITests.Shared/UITests.Shared.projitems b/src/SamplesApp/UITests.Shared/UITests.Shared.projitems index d59d12e62c59..17412c552333 100644 --- a/src/SamplesApp/UITests.Shared/UITests.Shared.projitems +++ b/src/SamplesApp/UITests.Shared/UITests.Shared.projitems @@ -482,6 +482,10 @@ Designer MSBuild:Compile + + Designer + MSBuild:Compile + Designer MSBuild:Compile @@ -5855,6 +5859,9 @@ Playground.xaml + + XuidGeneratorError.xaml + ElevatedViewTests.xaml