mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-02-17 10:12:02 -05:00
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.
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