mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-02-12 15:55:03 -05:00
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:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user