Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Gudahtt committed Jan 29, 2025
1 parent 6164026 commit 8b84fc8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/e2e/webdriver/driver.js
Original file line number Diff line number Diff line change
Expand Up @@ -1260,16 +1260,17 @@ class Driver {
await this.driver.switchTo().window(handle);

const htmlSource = await this.driver.getPageSource();
await fs.writeFile(`${filepathBase}-dom-${windowNumber}.html`, htmlSource);
await fs.writeFile(
`${filepathBase}-dom-${windowNumber}.html`,
htmlSource,
);
}
} catch (e) {
console.error('Failed to capture DOM snapshot', e);
}


// We want to take a state snapshot of the app if possible, this is useful for debugging
try {
const windowHandles = await this.driver.getAllWindowHandles();
for (const handle of windowHandles) {
await this.driver.switchTo().window(handle);
const uiState = await this.driver.executeScript(
Expand Down

0 comments on commit 8b84fc8

Please sign in to comment.