Skip to content

Commit 1704811

Browse files
committed
Refactor test.
1 parent b166369 commit 1704811

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Components/test/E2ETest/Tests/GlobalInteractivityTest.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,7 @@ public void CanRenderNotFoundInteractive(string renderingMode, bool useCustomNot
3737

3838
if (useCustomNotFoundPage)
3939
{
40-
var infoText = Browser.FindElement(By.Id("test-info")).Text;
41-
Assert.Contains("Welcome On Custom Not Found Page", infoText);
42-
// custom page should have a custom layout
43-
var aboutLink = Browser.FindElement(By.Id("about-link")).Text;
44-
Assert.Contains("About", aboutLink);
40+
AssertCustomNotFoundPageRendered();
4541
}
4642
else
4743
{

0 commit comments

Comments
 (0)