skopix 2.0.78 → 2.0.79
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.
|
@@ -3967,6 +3967,9 @@ async function approvePendingStep(suitesDir, id) {
|
|
|
3967
3967
|
const { id: _id, addedAt: _a, ...stepData } = step;
|
|
3968
3968
|
const added = await addLibraryStep(suitesDir, stepData);
|
|
3969
3969
|
await savePendingSteps(pending.filter(s => s.id !== id));
|
|
3970
|
+
// Sync test descriptions to use the approved name
|
|
3971
|
+
const sel = stepData.stableSelector || stepData.selector || '';
|
|
3972
|
+
if (sel) await syncSelectorsInternal(suitesDir, [sel.toLowerCase()], sel, stepData.name || stepData.description || '');
|
|
3970
3973
|
return added;
|
|
3971
3974
|
}
|
|
3972
3975
|
|
|
@@ -3980,6 +3983,8 @@ async function approveAllPending(suitesDir) {
|
|
|
3980
3983
|
for (const step of pending) {
|
|
3981
3984
|
const { id: _id, addedAt: _a, ...stepData } = step;
|
|
3982
3985
|
await addLibraryStep(suitesDir, stepData);
|
|
3986
|
+
const sel = stepData.stableSelector || stepData.selector || '';
|
|
3987
|
+
if (sel) await syncSelectorsInternal(suitesDir, [sel.toLowerCase()], sel, stepData.name || stepData.description || '');
|
|
3983
3988
|
}
|
|
3984
3989
|
await savePendingSteps([]);
|
|
3985
3990
|
return pending.length;
|
package/package.json
CHANGED