Add edge case tests and SweetAlert2 modal interaction tests

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-05 21:06:35 +08:00
parent 6641bc1f8f
commit 0ab037dac0
3 changed files with 232 additions and 0 deletions

View File

@@ -128,6 +128,38 @@ export function setupApiIntercepts() {
body: {},
}).as('getFilterCheckParams');
// Dependents (for delete confirmation)
cy.intercept('GET', '/api/logs/*/dependents', {
statusCode: 200,
body: [],
}).as('getLogDependents');
cy.intercept('GET', '/api/filters/*/dependents', {
statusCode: 200,
body: [],
}).as('getFilterDependents');
cy.intercept('GET', '/api/log-checks/*/dependents', {
statusCode: 200,
body: [],
}).as('getLogCheckDependents');
cy.intercept('GET', '/api/filter-checks/*/dependents', {
statusCode: 200,
body: [],
}).as('getFilterCheckDependents');
// Rename
cy.intercept('PUT', '/api/logs/*/rename', {
statusCode: 200,
body: { success: true },
}).as('renameLog');
cy.intercept('PUT', '/api/filters/*/rename', {
statusCode: 200,
body: { success: true },
}).as('renameFilter');
// Deletion
cy.intercept('DELETE', '/api/deletion/*', {
statusCode: 200,