Skip to content

Commit

Permalink
gog: don't wait for screenshot to not be loading, closes vogler#240
Browse files Browse the repository at this point in the history
  • Loading branch information
vogler committed Nov 9, 2023
1 parent 3ddf172 commit 4231b7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gog.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ try {
console.log(`Current free game: ${title} - ${url}`);
db.data[user][title] ||= { title, time: datetime(), url };
if (cfg.dryrun) process.exit(1);
await page.locator('#giveaway:not(.is-loading)').waitFor(); // otherwise screenshot is sometimes with loading indicator instead of game title
// await page.locator('#giveaway:not(.is-loading)').waitFor(); // otherwise screenshot is sometimes with loading indicator instead of game title; #TODO fix, skipped due to timeout, see #240
await banner.screenshot({ path: screenshot(`${filenamify(title)}.png`) }); // overwrites every time - only keep first?

// await banner.getByRole('button', { name: 'Add to library' }).click();
Expand Down

0 comments on commit 4231b7d

Please sign in to comment.