This commit is contained in:
2026-08-05 15:54:59 +08:00
parent eede351038
commit 4b31eb7786
43 changed files with 2117 additions and 851 deletions
+4 -4
View File
@@ -85,10 +85,10 @@ describe('LoginView authentication lifecycle', () => {
it.each([
['/customers?page=2', '/customers?page=2'],
['/customers/reviews', '/customers/reviews'],
['//example.com', '/403'],
['https://example.com', '/403'],
[['/customers', '/orders/first-leg'], '/403'],
[null, '/403'],
['//example.com', '/dashboard'],
['https://example.com', '/dashboard'],
[['/customers', '/orders/first-leg'], '/dashboard'],
[null, '/dashboard'],
])('sanitizes the post-login redirect %j to %s', async (redirect, expected) => {
const pinia = createPinia()
setActivePinia(pinia)