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.
package/dist/A11yScanner.js
CHANGED
|
@@ -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,
|
package/dist/models/index.d.ts
CHANGED
|
@@ -894,10 +894,15 @@ async function submitFinalBug() {
|
|
|
894
894
|
let videoUrl = null;
|
|
895
895
|
if (videoPath) {
|
|
896
896
|
try {
|
|
897
|
-
const
|
|
898
|
-
|
|
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.
|
|
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.
|
|
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",
|