ae: fix eslint issues
This commit is contained in:
parent
c772df26e9
commit
abc73964e6
1 changed files with 2 additions and 2 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue