snap-ally 0.2.2-beta → 0.2.3-beta

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.
@@ -169,7 +169,6 @@ async function scanA11y(page, testInfo, options = {}) {
169
169
  pageUrl: page.url(),
170
170
  accessibilityScore: 0, // No longer used, derivation from Lighthouse removed
171
171
  a11yErrors: errors,
172
- video: 'a11y-scan-video.webm', // Reference name for reporter
173
172
  criticalColor: models_1.Severity.critical,
174
173
  seriousColor: models_1.Severity.serious,
175
174
  moderateColor: models_1.Severity.moderate,
@@ -2,7 +2,7 @@ export interface ReportData {
2
2
  pageKey: string;
3
3
  pageUrl?: string;
4
4
  accessibilityScore: number;
5
- video: string;
5
+ video?: string;
6
6
  a11yErrors: A11yError[];
7
7
  criticalColor: string;
8
8
  seriousColor: string;
@@ -894,10 +894,15 @@ async function submitFinalBug() {
894
894
  let videoUrl = null;
895
895
  if (videoPath) {
896
896
  try {
897
- const videoBlob = await fetch(videoPath).then((res) => res.blob());
898
- videoUrl = await uploadAttachment(videoBlob, 'session-recording.webm');
897
+ const res = await fetch(videoPath);
898
+ if (res.ok) {
899
+ const videoBlob = await res.blob();
900
+ videoUrl = await uploadAttachment(videoBlob, 'session-recording.webm');
901
+ } else {
902
+ console.warn(`[SnapAlly] Video not found or access denied: ${videoPath}. Skipping video upload.`);
903
+ }
899
904
  } catch (e) {
900
- console.error('Failed to video upload', e);
905
+ console.warn(`[SnapAlly] Failed to load video: ${e.message}. Skipping video upload.`);
901
906
  }
902
907
  }
903
908
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snap-ally",
3
- "version": "0.2.2-beta",
3
+ "version": "0.2.3-beta",
4
4
  "description": "A custom Playwright reporter for Accessibility testing using Axe, with HTML reporting and Azure DevOps integration.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",