skopix 2.0.80 → 2.0.81

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.
@@ -406,6 +406,8 @@ export async function agentCommand(options) {
406
406
  }
407
407
  }
408
408
  if (!clicked) throw new Error('Could not click: ' + selectors.join(', '));
409
+ // Wait for any navigation triggered by the click
410
+ await page.waitForLoadState('domcontentloaded', { timeout: 5000 }).catch(() => {});
409
411
  await page.waitForTimeout(500);
410
412
 
411
413
  } else if (step.action === 'type') {
@@ -3288,6 +3288,7 @@ function startReplay(test, setupTest, activeRuns, reportsDir, currentUser, env)
3288
3288
  if (!clicked) throw new Error('Could not click element. Tried: ' + selectors.join(', '));
3289
3289
  const descLower = (step.description||'').toLowerCase(), selLower = selectors.join(' ').toLowerCase();
3290
3290
  const isSave = descLower.includes('save')||descLower.includes('submit')||selLower.includes('fa-save')||selLower.includes('fa-floppy');
3291
+ await page.waitForLoadState('domcontentloaded', { timeout: 5000 }).catch(() => {});
3291
3292
  await page.waitForTimeout(isSave ? 2000 : 500);
3292
3293
  broadcast({ type: 'stdout', text: ' \u2713 Clicked' + (isSave?' (waited for save)':'') });
3293
3294
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skopix",
3
- "version": "2.0.80",
3
+ "version": "2.0.81",
4
4
  "description": "Browser-based QA tool — record tests by using your app, replay them deterministically, generate Playwright code automatically",
5
5
  "main": "cli/index.js",
6
6
  "bin": {