Skip to content

Commit 555fd34

Browse files
authored
Update hardcoded name in playwright test (#8680)
1 parent ac098f7 commit 555fd34

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/Aspire.Dashboard.Tests/Integration/Playwright/BrowserTokenAuthenticationTests.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
using Aspire.TestUtilities;
55
using Aspire.Dashboard.Configuration;
6+
using Aspire.Dashboard.Resources;
67
using Aspire.Dashboard.Tests.Integration.Playwright.Infrastructure;
78
using Aspire.Hosting;
89
using Microsoft.AspNetCore.InternalTesting;
@@ -55,7 +56,7 @@ await Assertions
5556
});
5657
}
5758

58-
[Fact(Skip = "https://github.com/dotnet/aspire/issues/7522")]
59+
[Fact]
5960
public async Task BrowserToken_LoginPage_Failure_DisplayFailureMessage()
6061
{
6162
// Arrange
@@ -77,7 +78,7 @@ await RunTestAsync(async page =>
7778
const int pageVisibleTimeout = 10000;
7879

7980
await Assertions
80-
.Expect(page.GetByText("Invalid token"))
81+
.Expect(page.GetByText(Login.InvalidTokenErrorMessage))
8182
.ToBeVisibleAsync()
8283
.DefaultTimeout(pageVisibleTimeout);
8384
});

0 commit comments

Comments
 (0)