Fix tests
CI / backend (push) Failing after 8m50s
CI / frontend (push) Failing after 1m45s

This commit is contained in:
voltsrage
2026-08-05 20:21:23 +08:00
parent b44954545b
commit a6a491a2da
16 changed files with 104 additions and 15 deletions
@@ -62,7 +62,7 @@ public class AlertLifecycleTests : IAsyncLifetime
resp.StatusCode.Should().Be(HttpStatusCode.OK);
var body = await resp.Content.ReadFromJsonAsync<JsonDocument>();
body!.RootElement.GetProperty("data").GetProperty("status").GetString()
.Should().Be("Acknowledged");
.Should().Be("ACKNOWLEDGED");
body.RootElement.GetProperty("data").GetProperty("acknowledgedBy").GetString()
.Should().Be("Test NURSE (NURSE)");
}
@@ -90,6 +90,6 @@ public class AlertLifecycleTests : IAsyncLifetime
resolveResp.StatusCode.Should().Be(HttpStatusCode.OK);
var body = await resolveResp.Content.ReadFromJsonAsync<JsonDocument>();
body!.RootElement.GetProperty("data").GetProperty("status").GetString()
.Should().Be("Resolved");
.Should().Be("RESOLVED");
}
}