@skyramp/skyramp 1.2.34 → 1.2.36
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/package.json
CHANGED
|
@@ -872,7 +872,15 @@ class SkyrampPageAssertions {
|
|
|
872
872
|
if (!fs.existsSync(snapshotDir)) {
|
|
873
873
|
fs.mkdirSync(snapshotDir, { recursive: true });
|
|
874
874
|
}
|
|
875
|
-
|
|
875
|
+
// Apply Playwright's toHaveScreenshot defaults for consistency
|
|
876
|
+
// User can override these defaults via options
|
|
877
|
+
await this._actualObject.screenshot({
|
|
878
|
+
animations: 'disabled',
|
|
879
|
+
caret: 'hide',
|
|
880
|
+
scale: 'css',
|
|
881
|
+
...options,
|
|
882
|
+
path: snapshotPath // Always use our computed path
|
|
883
|
+
});
|
|
876
884
|
debug(`Generated baseline: ${snapshotPath}`);
|
|
877
885
|
}
|
|
878
886
|
|