Skip to content
This repository was archived by the owner on Jun 18, 2026. It is now read-only.

Commit 322d1b7

Browse files
authored
Merge pull request #1111 from DevArchwave/alertstest
2 parents 506ef0a + ce85a04 commit 322d1b7

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

Content.IntegrationTests/Tests/GameObjects/Components/Mobs/AlertsComponentTests.cs

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,12 @@ static AlertsUI FindAlertsUI(Control control)
101101
Assert.That(clientAlertsUI.AlertContainer.ChildCount, Is.GreaterThanOrEqualTo(3));
102102
var alertControls = clientAlertsUI.AlertContainer.Children.Select(c => (AlertControl) c);
103103
var alertIDs = alertControls.Select(ac => ac.Alert.ID).ToArray();
104-
var expectedIDs = new[] { "HumanHealth", "Debug1", "Debug2" };
105-
Assert.That(alertIDs, Is.SupersetOf(expectedIDs));
104+
// Goobstation - IPC have BorgHealth instead of HumanHealth
105+
var expectedDebugIDs = new[] { "Debug1", "Debug2" };
106+
var expectedHealthIDs = new[] { "BorgHealth", "HumanHealth" };
107+
108+
Assert.That(alertIDs, Is.SupersetOf(expectedDebugIDs));
109+
Assert.That(alertIDs, Has.Some.Matches<string>(item => expectedHealthIDs.Contains(item)));
106110
});
107111

108112
await server.WaitAssertion(() =>
@@ -118,8 +122,12 @@ await client.WaitAssertion(() =>
118122
Assert.That(clientAlertsUI.AlertContainer.ChildCount, Is.GreaterThanOrEqualTo(2));
119123
var alertControls = clientAlertsUI.AlertContainer.Children.Select(c => (AlertControl) c);
120124
var alertIDs = alertControls.Select(ac => ac.Alert.ID).ToArray();
121-
var expectedIDs = new[] { "HumanHealth", "Debug2" };
122-
Assert.That(alertIDs, Is.SupersetOf(expectedIDs));
125+
// Goobstation - IPC have BorgHealth instead of HumanHealth
126+
var expectedDebugIDs = new[] { "Debug2" };
127+
var expectedHealthIDs = new[] { "BorgHealth", "HumanHealth" };
128+
129+
Assert.That(alertIDs, Is.SupersetOf(expectedDebugIDs));
130+
Assert.That(alertIDs, Has.Some.Matches<string>(item => expectedHealthIDs.Contains(item)));
123131
});
124132

125133
await pair.CleanReturnAsync();

0 commit comments

Comments
 (0)