From 88d379c8e86ff4d5298ffc4a15883af641636d83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Herceg?= Date: Sun, 17 Dec 2023 15:05:15 +0100 Subject: [PATCH] UI test added --- .../Tests/Abstractions/SamplesRouteUrls.designer.cs | 1 + .../Tests/Feature/EmbeddedResourceControlsTests.cs | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/src/Samples/Tests/Abstractions/SamplesRouteUrls.designer.cs b/src/Samples/Tests/Abstractions/SamplesRouteUrls.designer.cs index a13d0c9227..aa72c88d13 100644 --- a/src/Samples/Tests/Abstractions/SamplesRouteUrls.designer.cs +++ b/src/Samples/Tests/Abstractions/SamplesRouteUrls.designer.cs @@ -248,6 +248,7 @@ public partial class SamplesRouteUrls public const string FeatureSamples_Directives_ImportDirectiveInvalid = "FeatureSamples/Directives/ImportDirectiveInvalid"; public const string FeatureSamples_Directives_ViewModelMissingAssembly = "FeatureSamples/Directives/ViewModelMissingAssembly"; public const string FeatureSamples_EmbeddedResourceControls_EmbeddedResourceControls = "FeatureSamples/EmbeddedResourceControls/EmbeddedResourceControls"; + public const string FeatureSamples_EmbeddedResourceControls_PageWithEmbeddedResourceMasterPage = "FeatureSamples/EmbeddedResourceControls/PageWithEmbeddedResourceMasterPage"; public const string FeatureSamples_Formatting_Formatting = "FeatureSamples/Formatting/Formatting"; public const string FeatureSamples_Formatting_ToStringGlobalFunctionBug = "FeatureSamples/Formatting/ToStringGlobalFunctionBug"; public const string FeatureSamples_FormControlsEnabled_FormControlsEnabled = "FeatureSamples/FormControlsEnabled/FormControlsEnabled"; diff --git a/src/Samples/Tests/Tests/Feature/EmbeddedResourceControlsTests.cs b/src/Samples/Tests/Tests/Feature/EmbeddedResourceControlsTests.cs index 68957c23dc..a7c07f53da 100644 --- a/src/Samples/Tests/Tests/Feature/EmbeddedResourceControlsTests.cs +++ b/src/Samples/Tests/Tests/Feature/EmbeddedResourceControlsTests.cs @@ -25,5 +25,15 @@ public void Feature_EmbeddedResourceControls_EmbeddedResourceControls() AssertUI.Attribute(browser.First("input[type=button]"), "value", "This is text"); }); } + + [Fact] + public void Feature_EmbeddedResourceControls_PageWithEmbeddedResourceMasterPage() + { + RunInAllBrowsers(browser => { + browser.NavigateToUrl(SamplesRouteUrls.FeatureSamples_EmbeddedResourceControls_PageWithEmbeddedResourceMasterPage); + + AssertUI.TextEquals(browser.Single("p"), "Success"); + }); + } } }