feat(ui): integrate bootstrap with auth shell

This commit is contained in:
sechmachine
2026-08-15 01:08:11 +07:00
parent f48fc63775
commit f9ddef6861
3 changed files with 51 additions and 11 deletions
@@ -63,6 +63,19 @@ class AccountTemplateIntegrationTest {
.andExpect(content().string(containsString("src=\"/assets/theme.js\"")));
}
@Test
void bootstrapUsesPublicAuthShellAndPreservesFirstAdminContract() throws Exception {
mvc.perform(get("/template-contract/bootstrap")
.with(user("bootstrap-template-viewer")))
.andExpect(status().isOk())
.andExpect(content().string(containsString("class=\"auth-shell\"")))
.andExpect(content().string(containsString("action=\"/bootstrap\"")))
.andExpect(content().string(containsString("name=\"email\"")))
.andExpect(content().string(containsString("name=\"displayName\"")))
.andExpect(content().string(containsString("autocomplete=\"new-password\"")))
.andExpect(content().string(containsString("src=\"/assets/theme.js\"")));
}
@Controller
public static class TemplateController {
@@ -81,5 +94,10 @@ class AccountTemplateIntegrationTest {
String login() {
return "accounts/login";
}
@GetMapping("/template-contract/bootstrap")
String bootstrap() {
return "bootstrap/form";
}
}
}