Converting Tests back to C# but still with Playwright

This commit is contained in:
2026-06-03 14:45:18 -04:00
parent 85834466f1
commit 46150d3a69
209 changed files with 1503 additions and 683 deletions
@@ -0,0 +1,32 @@
@inject IImmortalSelectionService FilterService
@implements IDisposable
<FormLayoutComponent>
<div style="@GetBorderStyle()">
@ChildContent
</div>
</FormLayoutComponent>
@code {
[Parameter] public RenderFragment? ChildContent { get; set; }
protected override void OnInitialized()
{
base.OnInitialized();
FilterService.Subscribe(StateHasChanged);
}
void IDisposable.Dispose()
{
FilterService.Unsubscribe(StateHasChanged);
}
string GetBorderStyle()
{
var faction = FilterService.GetFaction();
var color = faction == DataType.FACTION_Aru ? "var(--faction-aru)" : "var(--faction-qrath)";
return $"border-top: 4px solid {color}; padding-top: 14px; margin-top: -12px;";
}
}