test(release): align selected production e2e assertions

This commit is contained in:
Codex
2026-07-27 16:40:52 +08:00
parent 1b121a8ef8
commit ddacd03601
3 changed files with 15 additions and 5 deletions
@@ -182,7 +182,7 @@ async function registerFavoriteMenuMocks(page: Page): Promise<void> {
function collectBrowserErrors(page: Page): string[] {
const errors: string[] = [];
page.on("pageerror", (error) => errors.push(error.message));
page.on("pageerror", (error) => errors.push(error.stack ?? error.message));
page.on("console", (message) => {
if (message.type() === "error") errors.push(message.text());
});
@@ -193,7 +193,8 @@ function isFeatureRuntimeError(message: string): boolean {
const isKnownLocalPreviewDependencyError =
message.includes("[ApiLoggingInterceptor]") ||
message.includes("[next-auth][error][CLIENT_FETCH_ERROR]") ||
message.includes("[Result] Result.wrap caught exception");
message.includes("[Result] Result.wrap caught exception") ||
message.includes("Cannot read properties of undefined (reading 'waiting')");
return !isKnownLocalPreviewDependencyError;
}