skopix 2.0.66 → 2.0.67
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.
|
@@ -1851,7 +1851,14 @@ export async function dashboardCommand(options) {
|
|
|
1851
1851
|
const sel = (step.stableSelector || step.selector || '').toLowerCase();
|
|
1852
1852
|
const allTests = await listAllTests(suitesDir);
|
|
1853
1853
|
const usages = allTests
|
|
1854
|
-
.filter(t => t.steps && t.steps.some(s =>
|
|
1854
|
+
.filter(t => t.steps && t.steps.some(s => {
|
|
1855
|
+
const sSel = (s.stableSelector||s.selector||'').toLowerCase();
|
|
1856
|
+
if (!sSel) return false;
|
|
1857
|
+
// Exact match
|
|
1858
|
+
if (sSel === sel) return true;
|
|
1859
|
+
// Similarity match — same element different selector format
|
|
1860
|
+
return stepSimilarity({ selector: sSel }, { selector: sel }) >= 0.7;
|
|
1861
|
+
}))
|
|
1855
1862
|
.map(t => ({ id: t.id, name: t.name, scope: t.scope }));
|
|
1856
1863
|
sendJSON(res, 200, usages);
|
|
1857
1864
|
return;
|
package/package.json
CHANGED