diff --git a/docs/src/intro-csharp.md b/docs/src/intro-csharp.md index bc04f39a7c..1848e4d428 100644 --- a/docs/src/intro-csharp.md +++ b/docs/src/intro-csharp.md @@ -121,9 +121,6 @@ public class ExampleTest : PageTest // Click the get started link. await Page.GetByRole(AriaRole.Link, new() { Name = "Get started" }).ClickAsync(); - // Expects the URL to contain intro. - await Expect(Page).ToHaveURLAsync(new Regex(".*intro")); - // Expects page to have a heading with the name of Installation. await Expect(Page.GetByRole(AriaRole.Heading, new() { Name = "Installation" })).ToBeVisibleAsync(); } @@ -162,9 +159,6 @@ public class ExampleTest : PageTest // Click the get started link. await Page.GetByRole(AriaRole.Link, new() { Name = "Get started" }).ClickAsync(); - // Expects the URL to contain intro. - await Expect(Page).ToHaveURLAsync(new Regex(".*intro")); - // Expects page to have a heading with the name of Installation. await Expect(Page.GetByRole(AriaRole.Heading, new() { Name = "Installation" })).ToBeVisibleAsync(); } diff --git a/docs/src/writing-tests-csharp.md b/docs/src/writing-tests-csharp.md index bde3b8e288..249719185e 100644 --- a/docs/src/writing-tests-csharp.md +++ b/docs/src/writing-tests-csharp.md @@ -73,9 +73,6 @@ public class ExampleTest : PageTest // Click the get started link. await Page.GetByRole(AriaRole.Link, new() { Name = "Get started" }).ClickAsync(); - // Expects the URL to contain intro. - await Expect(Page).ToHaveURLAsync(new Regex(".*intro")); - // Expects page to have a heading with the name of Installation. await Expect(Page.GetByRole(AriaRole.Heading, new() { Name = "Installation" })).ToBeVisibleAsync(); } @@ -114,9 +111,6 @@ public class ExampleTest : PageTest // Click the get started link. await Page.GetByRole(AriaRole.Link, new() { Name = "Get started" }).ClickAsync(); - // Expects the URL to contain intro. - await Expect(Page).ToHaveURLAsync(new Regex(".*intro")); - // Expects page to have a heading with the name of Installation. await Expect(Page.GetByRole(AriaRole.Heading, new() { Name = "Installation" })).ToBeVisibleAsync(); }