feat(ui): integrate bootstrap with auth shell
This commit is contained in:
@@ -8,11 +8,11 @@
|
||||
|
||||
## Protected behavior
|
||||
|
||||
The authenticated account-creation page consumes the shared role-aware desktop shell and posts to the real account endpoint. The public activation and login pages consume the local themed authentication shell while preserving their raw-token and Spring Security form contracts. The Admin dashboard and navigation link to the implemented `/admin/accounts/new` route, and logout remains a CSRF-protected POST in the shared shell.
|
||||
The authenticated account-creation page consumes the shared role-aware desktop shell and posts to the real account endpoint. The public bootstrap, activation, and login pages consume the local themed authentication shell while preserving their first-Admin, raw-token, and Spring Security form contracts. The Admin dashboard and navigation link to the implemented `/admin/accounts/new` route, and logout remains a CSRF-protected POST in the shared shell.
|
||||
|
||||
## Test method
|
||||
|
||||
A focused MockMvc slice renders the production account-creation, activation, and login templates through a test-only controller. It asserts the authenticated and public shell markers, local pre-paint theme and CSS assets, real form actions, accessible error status, activation token retention, and the real account-creation URL. The existing PostgreSQL Account and Authentication web flows then exercise account creation, activation, normalized login, failed login, authorization, and logout through the production controllers and services.
|
||||
A focused MockMvc slice renders the production bootstrap, account-creation, activation, and login templates through a test-only controller. It asserts the authenticated and public shell markers, local pre-paint theme and CSS assets, real form actions, accessible error status, activation token retention, and the real account-creation URL. The existing PostgreSQL Bootstrap, Account, and Authentication flows then exercise one-time initialization, account creation, activation, normalized login, failed login, authorization, and logout through the production controllers and services.
|
||||
|
||||
## Hand-derived expected result
|
||||
|
||||
@@ -49,6 +49,15 @@ BUILD FAILURE
|
||||
Total time: 5.343 s
|
||||
```
|
||||
|
||||
The first-Admin bootstrap page then established its own layout RED:
|
||||
|
||||
```text
|
||||
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
|
||||
AccountTemplateIntegrationTest.bootstrapUsesPublicAuthShellAndPreservesFirstAdminContract expected class="auth-shell"
|
||||
BUILD FAILURE
|
||||
Total time: 4.771 s
|
||||
```
|
||||
|
||||
## GREEN
|
||||
|
||||
**Command**
|
||||
@@ -81,6 +90,16 @@ PostgreSQL 18.4
|
||||
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0
|
||||
BUILD SUCCESS
|
||||
Total time: 18.361 s
|
||||
|
||||
Bootstrap-specific affected suite:
|
||||
|
||||
```text
|
||||
./mvnw -Dtest=AccountTemplateIntegrationTest,BootstrapIntegrationTest test
|
||||
PostgreSQL 18.4
|
||||
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0
|
||||
BUILD SUCCESS
|
||||
Total time: 17.350 s
|
||||
```
|
||||
```
|
||||
|
||||
## External-test boundaries
|
||||
|
||||
Reference in New Issue
Block a user