Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
felixcicatt committed Dec 23, 2024
1 parent 2621d69 commit 8173cca
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ public static async Task NavigateToNieuwsWerkinstructiesBeheer(this IPage page)

await beheerlink.WaitForAsync(new() { State = WaitForSelectorState.Hidden });

while (await berichtenlink.GetAttributeAsync("aria-current") != "page")
if (await berichtenlink.GetAttributeAsync("aria-current") != "page")
{
await berichtenlink.ClickAsync();
await page.GetByRole(AriaRole.Heading, new() { Name = "Berichten" }).WaitForAsync();
}
}

Expand All @@ -39,9 +40,10 @@ public static async Task NavigateToSkillsBeheer(this IPage page)

await beheerlink.WaitForAsync(new() { State = WaitForSelectorState.Hidden });

while (await skillslink.GetAttributeAsync("aria-current") != "page")
if (await skillslink.GetAttributeAsync("aria-current") != "page")
{
await skillslink.ClickAsync();
await page.GetByRole(AriaRole.Heading, new() { Name = "Skills" }).WaitForAsync();
}
}

Expand Down

0 comments on commit 8173cca

Please sign in to comment.