skopix 2.0.14 → 2.0.16
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/cli/commands/agent.js +2 -2
- package/cli/commands/dashboard.js +2 -2
- package/package.json +1 -1
- package/web/app/index.html +5 -5
package/cli/commands/agent.js
CHANGED
|
@@ -250,9 +250,9 @@ export async function agentCommand(options) {
|
|
|
250
250
|
const wantReport = test.generateReport !== false;
|
|
251
251
|
const browserZoom = test.browserZoom || 1;
|
|
252
252
|
const ctx = await browser.newContext({
|
|
253
|
-
viewport: { width:
|
|
253
|
+
viewport: { width: 1280, height: 800 },
|
|
254
254
|
deviceScaleFactor: 1,
|
|
255
|
-
...(wantReport ? { recordVideo: { dir: sessionDir, size: { width:
|
|
255
|
+
...(wantReport ? { recordVideo: { dir: sessionDir, size: { width: 1280, height: 800 } } } : {}),
|
|
256
256
|
});
|
|
257
257
|
const page = await ctx.newPage();
|
|
258
258
|
const applyZoom = async () => {
|
|
@@ -3082,9 +3082,9 @@ function startReplay(test, setupTest, activeRuns, reportsDir, currentUser, env)
|
|
|
3082
3082
|
const browserZoom = test.browserZoom || 1;
|
|
3083
3083
|
|
|
3084
3084
|
const ctx = await chromiumBrowser.newContext({
|
|
3085
|
-
viewport: { width:
|
|
3085
|
+
viewport: { width: 1280, height: 800 },
|
|
3086
3086
|
deviceScaleFactor: 1,
|
|
3087
|
-
...(wantReport ? { recordVideo: { dir: sessionDir, size: { width:
|
|
3087
|
+
...(wantReport ? { recordVideo: { dir: sessionDir, size: { width: 1280, height: 800 } } } : {}),
|
|
3088
3088
|
});
|
|
3089
3089
|
const page = await ctx.newPage();
|
|
3090
3090
|
// Apply zoom after page loads, not via addInitScript (which affects setup steps too)
|
package/package.json
CHANGED
package/web/app/index.html
CHANGED
|
@@ -2240,9 +2240,9 @@ body.viewer-mode .saved-test-row { cursor: default !important; }
|
|
|
2240
2240
|
<div style="display:flex;align-items:center;gap:8px">
|
|
2241
2241
|
<label style="font-family:var(--mono);font-size:12px;color:var(--muted);white-space:nowrap">Browser zoom:</label>
|
|
2242
2242
|
<select class="form-select" id="re-browser-zoom" style="padding:5px 8px;font-size:12px;width:90px">
|
|
2243
|
-
<option value="1">100%</option>
|
|
2243
|
+
<option value="1" selected>100%</option>
|
|
2244
2244
|
<option value="0.9">90%</option>
|
|
2245
|
-
<option value="0.8"
|
|
2245
|
+
<option value="0.8">80%</option>
|
|
2246
2246
|
<option value="0.75">75%</option>
|
|
2247
2247
|
<option value="0.67">67%</option>
|
|
2248
2248
|
</select>
|
|
@@ -5467,7 +5467,7 @@ async function confirmAddToSuite() {
|
|
|
5467
5467
|
}
|
|
5468
5468
|
|
|
5469
5469
|
// ── RECORDED TEST EDITOR ────────────────────────────────────────────────────
|
|
5470
|
-
let reEditorState = { scope: null, testId: null, steps: [], testName: '', url: '', reusable: false, setup: '', credentials: '', tags: [], generateReport: true, browserZoom:
|
|
5470
|
+
let reEditorState = { scope: null, testId: null, steps: [], testName: '', url: '', reusable: false, setup: '', credentials: '', tags: [], generateReport: true, browserZoom: 1 };
|
|
5471
5471
|
let reAssertInsertAfter = -1;
|
|
5472
5472
|
|
|
5473
5473
|
async function openRecordedTestEditor(scope, testId) {
|
|
@@ -5475,7 +5475,7 @@ async function openRecordedTestEditor(scope, testId) {
|
|
|
5475
5475
|
const res = await fetch(API_BASE + '/api/test/' + encodeURIComponent(scope) + '/' + encodeURIComponent(testId));
|
|
5476
5476
|
const test = await res.json();
|
|
5477
5477
|
if (!res.ok) { showToast(test.error || 'Failed to load test'); return; }
|
|
5478
|
-
reEditorState = { scope, testId, steps: JSON.parse(JSON.stringify(test.steps || [])), testName: test.name || '', url: test.url || '', reusable: !!test.reusable, setup: test.setup || '', credentials: test.credentials || '', tags: test.tags || [], generateReport: test.generateReport !== false, browserZoom: test.browserZoom ||
|
|
5478
|
+
reEditorState = { scope, testId, steps: JSON.parse(JSON.stringify(test.steps || [])), testName: test.name || '', url: test.url || '', reusable: !!test.reusable, setup: test.setup || '', credentials: test.credentials || '', tags: test.tags || [], generateReport: test.generateReport !== false, browserZoom: test.browserZoom || 1 };
|
|
5479
5479
|
document.getElementById('re-name').value = reEditorState.testName;
|
|
5480
5480
|
document.getElementById('re-url').value = reEditorState.url;
|
|
5481
5481
|
document.getElementById('re-reusable').checked = reEditorState.reusable;
|
|
@@ -5737,7 +5737,7 @@ async function saveRecordedEdits() {
|
|
|
5737
5737
|
const url = document.getElementById('re-url').value.trim();
|
|
5738
5738
|
const reusable = document.getElementById('re-reusable').checked;
|
|
5739
5739
|
const generateReport = document.getElementById('re-generate-report')?.checked !== false;
|
|
5740
|
-
const browserZoom = parseFloat(document.getElementById('re-browser-zoom')?.value || '
|
|
5740
|
+
const browserZoom = parseFloat(document.getElementById('re-browser-zoom')?.value || '1');
|
|
5741
5741
|
const setup = document.getElementById('re-setup').value || null;
|
|
5742
5742
|
const credentials = document.getElementById('re-credentials')?.value || '';
|
|
5743
5743
|
const tags = (document.getElementById('re-tags')?.value || '').split(',').map(t => t.trim()).filter(Boolean);
|