snap-ally 0.2.4-beta → 0.2.5-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.
|
@@ -880,7 +880,7 @@ async function submitFinalBug() {
|
|
|
880
880
|
|
|
881
881
|
const title = document.getElementById('bugTitleInput').value;
|
|
882
882
|
const severity = document.getElementById('bugSeverityInput').value;
|
|
883
|
-
const area = document.getElementById('bugAreaInput').value
|
|
883
|
+
const area = document.getElementById('bugAreaInput').value;
|
|
884
884
|
|
|
885
885
|
let screenshotUrl = null;
|
|
886
886
|
if (screenshotBase64) {
|
|
@@ -932,10 +932,18 @@ async function submitFinalBug() {
|
|
|
932
932
|
value: `Found at URL / Resource: <a href="${safePageKey}">${safePageKey}</a>`,
|
|
933
933
|
},
|
|
934
934
|
{ op: 'add', path: '/fields/Microsoft.VSTS.Common.Priority', value: priority },
|
|
935
|
-
{ op: 'add', path: '/fields/System.AreaPath', value: area.startsWith(proj + '\\') || area === proj ? area : `${proj}\\${area}` },
|
|
936
|
-
{ op: 'add', path: '/fields/System.Tags', value: 'A11y;SnapAlly;UI-Test' },
|
|
937
935
|
];
|
|
938
936
|
|
|
937
|
+
if (area) {
|
|
938
|
+
payload.push({
|
|
939
|
+
op: 'add',
|
|
940
|
+
path: '/fields/System.AreaPath',
|
|
941
|
+
value: area.startsWith(proj + '\\') || area === proj ? area : `${proj}\\${area}`,
|
|
942
|
+
});
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
payload.push({ op: 'add', path: '/fields/System.Tags', value: 'A11y;SnapAlly;UI-Test' });
|
|
946
|
+
|
|
939
947
|
if (screenshotUrl) {
|
|
940
948
|
payload.push({
|
|
941
949
|
op: 'add',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "snap-ally",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5-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",
|