@immense/vue-pom-generator 1.0.74 → 1.0.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/RELEASE_NOTES.md +62 -78
- package/dist/eslint/index.cjs +79 -4
- package/dist/eslint/index.cjs.map +1 -1
- package/dist/eslint/index.d.ts +3 -0
- package/dist/eslint/index.d.ts.map +1 -1
- package/dist/eslint/index.mjs +79 -4
- package/dist/eslint/index.mjs.map +1 -1
- package/dist/eslint/no-raw-playwright-apis.d.ts +3 -0
- package/dist/eslint/no-raw-playwright-apis.d.ts.map +1 -0
- package/dist/index.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/dist/transform.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -7625,8 +7625,10 @@ Fix: remove the explicit ${attrLabel}, or change existingIdBehavior to "overwrit
|
|
|
7625
7625
|
});
|
|
7626
7626
|
return;
|
|
7627
7627
|
}
|
|
7628
|
+
const existingElementDataTestId = tryGetExistingElementDataTestId(element, testIdAttribute);
|
|
7629
|
+
const shouldPreserveExisting = existingElementDataTestId && existingIdBehavior === "preserve";
|
|
7628
7630
|
const clickDirective = tryGetClickDirective(element);
|
|
7629
|
-
if (clickDirective) {
|
|
7631
|
+
if (clickDirective && !shouldPreserveExisting) {
|
|
7630
7632
|
const clickSuffix = getComposedClickHandlerContent(element, context, innerText, clickDirective, {
|
|
7631
7633
|
contextFilename: context.filename
|
|
7632
7634
|
});
|
|
@@ -7647,7 +7649,6 @@ Fix: remove the explicit ${attrLabel}, or change existingIdBehavior to "overwrit
|
|
|
7647
7649
|
tryWrapClickDirectiveForTestEvents(element, testIdAttribute, resolvedDataTestId.runtimeValue);
|
|
7648
7650
|
return;
|
|
7649
7651
|
}
|
|
7650
|
-
const existingElementDataTestId = tryGetExistingElementDataTestId(element, testIdAttribute);
|
|
7651
7652
|
if (existingElementDataTestId) {
|
|
7652
7653
|
const inferredRole = getNativeRoleFromTagSuffix().toLowerCase();
|
|
7653
7654
|
const isRecognizedInteractiveRole = inferredRole === "button" || inferredRole === "input" || inferredRole === "select" || inferredRole === "vselect" || inferredRole === "checkbox" || inferredRole === "toggle" || inferredRole === "radio" || inferredRole === "grid" || isComponentLikeTag(element.tag);
|