@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyramp/skyramp",
3
- "version": "1.2.34",
3
+ "version": "1.2.36",
4
4
  "description": "module for leveraging skyramp cli functionality",
5
5
  "scripts": {
6
6
  "lint": "eslint 'src/**/*.js' 'src/**/*.ts' --fix",
@@ -872,7 +872,15 @@ class SkyrampPageAssertions {
872
872
  if (!fs.existsSync(snapshotDir)) {
873
873
  fs.mkdirSync(snapshotDir, { recursive: true });
874
874
  }
875
- await this._actualObject.screenshot({ path: snapshotPath, ...options });
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