Add E2E tests for logout, account CRUD, and file operations
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -43,6 +43,22 @@ export function setupApiIntercepts() {
|
||||
body: { success: true },
|
||||
}).as('putUser');
|
||||
|
||||
// User detail (GET /api/users/:username)
|
||||
cy.intercept('GET', '/api/users/*', {
|
||||
fixture: 'api/user-detail.json',
|
||||
}).as('getUserDetail');
|
||||
|
||||
// User roles
|
||||
cy.intercept('PUT', '/api/users/*/roles/*', {
|
||||
statusCode: 200,
|
||||
body: { success: true },
|
||||
}).as('putUserRole');
|
||||
|
||||
cy.intercept('DELETE', '/api/users/*/roles/*', {
|
||||
statusCode: 200,
|
||||
body: { success: true },
|
||||
}).as('deleteUserRole');
|
||||
|
||||
// Discover (map data)
|
||||
cy.intercept('GET', '/api/logs/*/discover', {
|
||||
fixture: 'api/discover.json',
|
||||
|
||||
Reference in New Issue
Block a user