diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Tests/IdentityPagesTests.cs b/src/Templates/Boilerplate/Bit.Boilerplate/src/Tests/IdentityPagesTests.cs index 23917a3ada..6b2e0ea280 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Tests/IdentityPagesTests.cs +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Tests/IdentityPagesTests.cs @@ -1,4 +1,5 @@ -using Microsoft.Playwright.MSTest; +using System.Text.RegularExpressions; +using Microsoft.Playwright.MSTest; namespace Boilerplate.Tests; @@ -17,6 +18,6 @@ await server.Build(services => await Page.GotoAsync(new Uri(server.GetServerAddress(), Urls.ProfilePage).ToString()); - await Expect(Page).ToHaveTitleAsync(AppStrings.SignIn); + await Expect(Page).ToHaveURLAsync(new Regex(@".*sign-in\?return-url=profile")); } }