ae: fix eslint issues

This commit is contained in:
Ralf Vogler 2025-05-29 17:37:10 +02:00
parent c772df26e9
commit abc73964e6

View file

@ -89,7 +89,7 @@ const coins = async () => {
const moreBtn = page.locator('.signVersion-panel div:has-text("Earn more coins")').first();
await Promise.any([
collectBtn.click().then(_ => console.log('Collected coins for today!')),
moreBtn.waitFor().then(_ => console.log('No more coins to collect today!'))
moreBtn.waitFor().then(_ => console.log('No more coins to collect today!')),
]); // sometimes did not make it click the collect button... moreBtn.isVisible() as alternative also didn't work
// await collectBtn.click().catch(_ => moreBtn.waitFor()); // TODO change this since it's going to delay by timeout if already collected
console.log(await page.locator('.marquee-content:has-text(" coins")').first().innerText());