feat(centralui): LoginCard sign-in

Replace hand-rolled Bootstrap card with the shared <LoginCard> from ZB.MOM.WW.Theme.
Update ComponentRenderingTests assertions to match LoginCard's rendered structure
(h1.login-title, div.panel.notice.login-error, "Sign in" button text).
This commit is contained in:
Joseph Doherty
2026-06-03 03:34:12 -04:00
parent 957203ec7b
commit b9516e6721
2 changed files with 6 additions and 32 deletions
@@ -34,7 +34,7 @@ public class ComponentRenderingTests : BunitContext
// Verify submit button
var submitButton = cut.Find("button[type='submit']");
Assert.Contains("Sign In", submitButton.TextContent);
Assert.Contains("Sign in", submitButton.TextContent);
}
[Fact]
@@ -42,7 +42,7 @@ public class ComponentRenderingTests : BunitContext
{
var cut = Render<Login>();
Assert.Throws<Bunit.ElementNotFoundException>(() => cut.Find("div.alert.alert-danger"));
Assert.Throws<Bunit.ElementNotFoundException>(() => cut.Find("div.panel.notice.login-error"));
}
[Fact]
@@ -69,7 +69,7 @@ public class ComponentRenderingTests : BunitContext
{
var cut = Render<Login>();
var title = cut.Find("h4.card-title");
Assert.Equal("ScadaBridge", title.TextContent);
var title = cut.Find("h1.login-title");
Assert.Contains("ScadaBridge", title.TextContent);
}
}