From 209ca7dcb66d73a43a313126b623204149231c22 Mon Sep 17 00:00:00 2001 From: abhi1992002 Date: Thu, 12 Feb 2026 11:45:54 +0530 Subject: [PATCH] refactor(tests): improve error handling in BuildPage ### Summary - Updated the error handling in the `BuildPage` class by changing the catch block to use a more concise variable name (`_error`), enhancing code readability without altering functionality. ### Impact This change simplifies the error handling logic, making it clearer while maintaining the existing behavior of logging when the tutorial is not shown or already dismissed. ### Testing - No functional tests were affected; existing tests continue to pass successfully. --- 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 4413344b3d..9370288f8e 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"); } }