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.
This commit is contained in:
abhi1992002
2026-02-12 11:45:54 +05:30
parent 9d19ab4139
commit 209ca7dcb6

View File

@@ -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");
}
}