test(e2e): improve dialog focus tests and code quality

Test improvements:
- Add error handling for Electron app launch in headless environments
- Update dialog selectors to use ARIA attributes for better reliability
- Implement actual test logic (previously skipped placeholders)
- Add screenshot capture evidence for test results
- Update test descriptions to match actual dialog types

Code quality improvements:
- Change 'let' to 'const' for variables that are not reassigned
- Improves code clarity and follows best practices

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
test
2026-03-08 17:59:35 +08:00
parent 5b4d7fab49
commit 9a640b96e6
2 changed files with 175 additions and 112 deletions

View File

@@ -297,7 +297,7 @@ export function useCleaner() {
try {
setIsRunning(true)
let msgParts: string[] = []
const msgParts: string[] = []
if (materialsToUpsert.length > 0) {
const res = await window.electron.materials.upsertBatch(materialsToUpsert)