From 322ac69dc241b5f27c86ed3f0374753d9fec5f2f Mon Sep 17 00:00:00 2001 From: ysmoradi Date: Tue, 24 Sep 2024 21:38:40 +0200 Subject: [PATCH] fix --- .../Bit.Boilerplate/src/Tests/IdentityPagesTests.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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")); } }