feat(ui): integrate bootstrap with auth shell
This commit is contained in:
+18
@@ -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";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user