@@ -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