test(release): align selected production e2e assertions
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user