fix: resolve remaining sonar findings
This commit is contained in:
parent
5e0c5263ca
commit
2bc8e958d2
3 changed files with 26 additions and 12 deletions
|
|
@ -98,7 +98,11 @@ try {
|
|||
console.log(`Signed in as ${user}`);
|
||||
db.data[user] ||= {};
|
||||
|
||||
page.locator('button:has-text("Accept All Cookies")').click().catch(_ => { });
|
||||
try {
|
||||
await page.locator('button:has-text("Accept All Cookies")').click();
|
||||
} catch {
|
||||
// button may not be present
|
||||
}
|
||||
|
||||
const ids = [];
|
||||
for (const p of await page.locator('article.asset').all()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue