update
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Test Scenarios - Route Protection (Chức năng 8)
|
||||
# Test Scenarios - Route Protection (Function 8)
|
||||
|
||||
## Test Setup
|
||||
|
||||
@@ -205,7 +205,7 @@ Verify that loading state is displayed during auth check.
|
||||
|
||||
### Expected Result
|
||||
- ✅ Loading spinner displayed
|
||||
- ✅ Text "Đang tải..." or "Đang xác thực..." visible
|
||||
- ✅ Text "Loading..." or "Authenticating..." visible
|
||||
- ✅ No flash of redirect
|
||||
- ✅ Smooth transition after loading
|
||||
|
||||
@@ -336,7 +336,7 @@ Verify that logout clears auth and redirects properly.
|
||||
- ✅ Token removed from localStorage
|
||||
- ✅ userInfo removed from localStorage
|
||||
- ✅ Redirected to `/` or `/login`
|
||||
- ✅ Navbar shows "Đăng nhập" button
|
||||
- ✅ Navbar shows "Login" button
|
||||
- ✅ Cannot access protected routes anymore
|
||||
|
||||
### Actual Result
|
||||
@@ -430,7 +430,7 @@ Verify that non-existent routes show 404 page.
|
||||
|
||||
### Expected Result
|
||||
- ✅ 404 page displayed
|
||||
- ✅ "404 - Không tìm thấy trang" message
|
||||
- ✅ "404 - Page not found" message
|
||||
- ✅ URL shows `/non-existent-route`
|
||||
- ✅ No errors in console
|
||||
|
||||
|
||||
Reference in New Issue
Block a user