From ef52537197e95c4de0ddc83d20274c18717fdf8b Mon Sep 17 00:00:00 2001 From: abhi1992002 Date: Tue, 17 Feb 2026 11:06:44 +0530 Subject: [PATCH] fix(tests): Update error handling in BuildPage to suppress unused variable warning Modified the error handling in the `BuildPage` class to replace the caught error variable with an underscore (`_error`). This change prevents warnings about unused variables while maintaining the existing functionality of logging tutorial dismissal messages. Ensured that the code remains clean and adheres to best practices. --- autogpt_platform/frontend/src/tests/pages/build.page.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autogpt_platform/frontend/src/tests/pages/build.page.ts b/autogpt_platform/frontend/src/tests/pages/build.page.ts index 14e02d6164..3bb9552b82 100644 --- a/autogpt_platform/frontend/src/tests/pages/build.page.ts +++ b/autogpt_platform/frontend/src/tests/pages/build.page.ts @@ -27,7 +27,7 @@ export class BuildPage extends BasePage { await this.page .getByRole("button", { name: "Skip Tutorial", exact: true }) .click({ timeout: 3000 }); - } catch (error) { + } catch (_error) { console.info("Tutorial not shown or already dismissed"); } }