We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7a806c commit b02cc3cCopy full SHA for b02cc3c
playwright/support/helper.ts
@@ -87,10 +87,12 @@ export const checkAccessibility = async (
87
);
88
}
89
} else {
90
- await testInfo.attach("accessibility-incomplete.json", {
91
- body: JSON.stringify(accessibilityScanResults.incomplete, null, 2),
92
- contentType: "application/json",
93
- });
+ if (accessibilityScanResults.incomplete.length > 0) {
+ await testInfo.attach("accessibility-incomplete.json", {
+ body: JSON.stringify(accessibilityScanResults.incomplete, null, 2),
+ contentType: "application/json",
94
+ });
95
+ }
96
97
if (accessibilityScanResults.violations.length > 0) {
98
await testInfo.attach("accessibility-violations.json", {
0 commit comments