fix: 忽略空图片并收紧预览警告断言
This commit is contained in:
1 parent
34504c0b44
commit
a1b29cedee
4 files changed
+34
-9
No files matched your search
@@ -98,7 +98,9 @@ test.beforeEach(({ page }) => {
|
||||
const isWarning =
|
||||
message.type() === "warning" ||
|
||||
(message.type() === "error" &&
|
||||
(text.startsWith("Warning:") || text.includes("non-boolean attribute")));
|
||||
(text.startsWith("Warning:") ||
|
||||
text.includes("non-boolean attribute") ||
|
||||
text.includes("empty string")));
|
||||
if (isWarning) warnings.push(text);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user