pg: dlc: log url of dlc if account not linked, #180

This commit is contained in:
Ralf Vogler 2023-08-17 16:43:47 +02:00
parent d0761dea26
commit 86832e7fe9

View file

@ -330,7 +330,7 @@ try {
const linkAccountModal = page.locator('[data-a-target="LinkAccountModal"]'); const linkAccountModal = page.locator('[data-a-target="LinkAccountModal"]');
const linkAccountButton = linkAccountModal.locator('[data-a-target="LinkAccountButton"]'); const linkAccountButton = linkAccountModal.locator('[data-a-target="LinkAccountButton"]');
if (await linkAccountButton.count()) { if (await linkAccountButton.count()) {
console.error(' Missing account linking:', await linkAccountButton.getAttribute('aria-label')); console.error(' Missing account linking:', await linkAccountButton.getAttribute('aria-label'), url);
} else if(await page.locator('text=Link game account').count()) { // epic-games only? } else if(await page.locator('text=Link game account').count()) { // epic-games only?
console.error(' Missing account linking:', await page.locator('button[data-a-target="gms-cta"]').innerText()); console.error(' Missing account linking:', await page.locator('button[data-a-target="gms-cta"]').innerText());
} else { } else {