From 2b2e4fefab0d760a779686ca7120ead897b5e349 Mon Sep 17 00:00:00 2001 From: Will Miao Date: Thu, 27 Nov 2025 20:44:05 +0800 Subject: [PATCH] feat(tests): restructure test HTML to nest elements under model modal Refactor the test HTML structure to properly nest all model metadata elements within the model modal container. This improves test accuracy by matching the actual DOM structure used in the application, ensuring that element selection and event handling work correctly during testing. --- .../modelMetadata.renamePath.test.js | 39 ++++++++++--------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/tests/frontend/components/modelMetadata.renamePath.test.js b/tests/frontend/components/modelMetadata.renamePath.test.js index 280f8853..01202d35 100644 --- a/tests/frontend/components/modelMetadata.renamePath.test.js +++ b/tests/frontend/components/modelMetadata.renamePath.test.js @@ -114,26 +114,27 @@ describe('Model metadata interactions keep file path in sync', () => { }); document.body.innerHTML = ` -
-
-

Qwen

- +
+
+

Qwen

+ +
+
+ SDXL + +
+
+ Qwen + +
+
+
+
+ +
+ +
-
- SDXL - -
-
- Qwen - -
-
-
-
- -
- -
`; const { setupFileNameEditing } = await import(METADATA_MODULE);