Skip to content

Commit

Permalink
Update getGrist.ts
Browse files Browse the repository at this point in the history
explanation of try-catch in SteCustomWidgetMapping
  • Loading branch information
JakubSerafin authored Aug 10, 2023
1 parent 5b2708d commit 327a72d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/getGrist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,8 @@ export class GristUtils extends GristWebDriverUtils {
try {
driver.findWait(`${selector}`, 2000).click();
} catch (e) {
//sometimes here we get into "detached" state and test fail.
//if this happend, just try one more time
driver.findWait(`${selector}`, 2000).click();
}
};
Expand Down

0 comments on commit 327a72d

Please sign in to comment.