From 27ae385fd7787bf34af00366c5d490ac33abeff9 Mon Sep 17 00:00:00 2001 From: Ibrahim <93064150+IbrahimCSAE@users.noreply.github.com> Date: Fri, 22 Nov 2024 11:00:19 -0500 Subject: [PATCH] fix(error-boundray): prevent stack trace from overflowing and make it scrollable (#4541) --- .github/workflows/playwright.yml | 2 +- platform/app/cypress/support/commands.js | 2 +- .../Errorboundary/ErrorBoundary.tsx | 30 +++++++++---------- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 8f5d82784ca..25910198805 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -9,7 +9,7 @@ jobs: timeout-minutes: 60 runs-on: ubuntu-latest container: - image: mcr.microsoft.com/playwright:v1.48.1-focal + image: mcr.microsoft.com/playwright:v1.49.0-noble strategy: fail-fast: false matrix: diff --git a/platform/app/cypress/support/commands.js b/platform/app/cypress/support/commands.js index 5df25e108df..7e8f912c9d8 100644 --- a/platform/app/cypress/support/commands.js +++ b/platform/app/cypress/support/commands.js @@ -107,7 +107,7 @@ Cypress.Commands.add('isPageLoaded', (url = '/basic-test') => { Cypress.Commands.add('openStudyList', () => { cy.initRouteAliases(); - cy.visit('/', { timeout: 15000 }); + cy.visit('/', { timeout: 30000 }); // For some reason cypress 12.x does not like to stub the network request // so we just wait here for querying to be done. diff --git a/platform/ui-next/src/components/Errorboundary/ErrorBoundary.tsx b/platform/ui-next/src/components/Errorboundary/ErrorBoundary.tsx index 139565bf8e3..0263072623e 100644 --- a/platform/ui-next/src/components/Errorboundary/ErrorBoundary.tsx +++ b/platform/ui-next/src/components/Errorboundary/ErrorBoundary.tsx @@ -78,25 +78,25 @@ Stack: ${error.stack} > - {title} + +
{title}
+ +
+ {subtitle}
- +
-
- -
-

{t('Context')}: {context}