diff --git a/Kiss.Bff.EndToEndTest/NieuwsEnWerkInstructies/Scenarios.cs b/Kiss.Bff.EndToEndTest/NieuwsEnWerkInstructies/Scenarios.cs index ffdc15b9..69e9c743 100644 --- a/Kiss.Bff.EndToEndTest/NieuwsEnWerkInstructies/Scenarios.cs +++ b/Kiss.Bff.EndToEndTest/NieuwsEnWerkInstructies/Scenarios.cs @@ -287,6 +287,8 @@ public async Task Scenario10() await Page.GetSkillsFieldset().GetByRole(AriaRole.Checkbox, new() { Name = skill.Naam }).CheckAsync(); await Step("Then no articles are visible"); + // wait until the spinner is gone + await Expect(Page.Locator(".spinner")).ToBeHiddenAsync(); var articles = Page.GetByRole(AriaRole.Article); await Expect(articles).ToBeHiddenAsync(); }