test(cameras): wait for snapshot tile readiness
Heimdall Gitea / Detect CI scope (pull_request) Successful in 7s
Heimdall Gitea / Build and tests (pull_request) Failing after 5m41s
Heimdall Gitea / Build and scan server image (pull_request) Skipped
Heimdall Gitea / Build and scan agent image (pull_request) Skipped
Heimdall Gitea / Publish Docker Hub latest tags (pull_request) Skipped
Heimdall Gitea / Publish versioned release (pull_request) Skipped
Heimdall Gitea / CI policy (pull_request) Failing after 2s

This commit is contained in:
Arnaud Dartois committed 2026-10-25 20:02:11 +01:00
1 parent 7f481b383b
commit a9f26ddebb
1 file changed
+6
@@ -111,6 +111,9 @@ public class CamerasPageTests : PageTestBase
var cut = RenderPage<CamerasPage>(p => p.Add(x => x.SiteId, SiteId));
cut.WaitForAssertion(() => cut.Markup.ShouldContain("Caméra Entrée"));
cut.WaitForAssertion(() => cut.FindAll("button")
.Single(button => button.GetAttribute("aria-label") == "Prendre un instantané")
.HasAttribute("disabled").ShouldBeFalse());
cut.FindAll("button").Single(button => button.GetAttribute("aria-label") == "Prendre un instantané").Click();
cut.WaitForAssertion(() =>
@@ -144,6 +147,9 @@ public class CamerasPageTests : PageTestBase
var cut = RenderPage<CamerasPage>(p => p.Add(x => x.SiteId, SiteId));
cut.WaitForAssertion(() => cut.Markup.ShouldContain("Caméra Entrée"));
cut.WaitForAssertion(() => cut.FindAll("button")
.Single(button => button.GetAttribute("aria-label") == "Prendre un instantané")
.HasAttribute("disabled").ShouldBeFalse());
cut.FindAll("button").Single(button => button.GetAttribute("aria-label") == "Prendre un instantané").Click();
cut.WaitForAssertion(() => cut.Markup.ShouldContain("La capture prend plus de temps que prévu"));