Skip to content

Commit e6b7d71

Browse files
committed
fix login tests
1 parent 0939e20 commit e6b7d71

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

tests/web/Jordnaer.E2E.Tests/AuthenticatedTests/AuthenticatedTopBarTests.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,7 @@ public async Task Links_Should_Be_Visible_In_The_Topbar_And_Redirect_Correctly(s
2121
var page = await SetUpFixture.Context.NewPageAsync();
2222
await page.GotoAsync(TestConfiguration.Values.BaseUrl);
2323

24-
var link = page.GetByRole(AriaRole.Link,
25-
new PageGetByRoleOptions
26-
{
27-
Name = linkName
28-
});
24+
var link = page.GetByRole(AriaRole.Link, new PageGetByRoleOptions { Name = linkName });
2925

3026
await Expect(link).ToBeVisibleAsync();
3127

tests/web/Jordnaer.E2E.Tests/LoginTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public async Task When_User_Goes_To_Login_Links_Are_Visible(string linkTextRegex
4444

4545
await page.GotoAsync(TestConfiguration.Values.BaseUrl);
4646
await page.GetByRole(AriaRole.Link, new PageGetByRoleOptions { Name = "Opret ny konto" }).ClickAsync();
47+
await page.GetByText("Log ind med eksisterende konto").ClickAsync();
4748

4849
await Expect(page.GetByRole(AriaRole.Link, new PageGetByRoleOptions
4950
{

tests/web/Jordnaer.E2E.Tests/TopBarTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace Jordnaer.E2E.Tests;
99
[Parallelizable(ParallelScope.All)]
1010
[TestFixture]
1111
[Category(nameof(TestCategory.UI))]
12-
public class AuthenticatedTopBarTests : BrowserTest
12+
public class TopBarTests : BrowserTest
1313
{
1414
[Test]
1515
[TestCase("Personer", ".*/users")]

0 commit comments

Comments
 (0)