Closes the browser and clears authentication state.
()
| 95 | |
| 96 | /** Closes the browser and clears authentication state. */ |
| 97 | async close(): Promise<void> { |
| 98 | this.storageState = undefined; |
| 99 | this.browserInstalled = false; |
| 100 | |
| 101 | if (this.browser) { |
| 102 | await this.browser.close(); |
| 103 | this.browser = undefined; |
| 104 | logger.debug('Closed Chromium browser'); |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | /** |
| 109 | * Ensures Chromium browser binary is installed before running accessibility audits. |
no test coverage detected