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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user