Skip to content

Commit 5938bf4

Browse files
committed
eg: fix waiting for claim btn to not be Loading
1 parent 0c87c9a commit 5938bf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

epic-games.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ try {
173173
await page.waitForFunction(
174174
() => {
175175
const btn = document.querySelector('button[data-testid="purchase-cta-button"]');
176-
return btn && btn.textContent && /[ei]/i.test(btn.textContent);
176+
return btn && /[ei]/i.test(btn.textContent) && btn.textContent != 'Loading';
177177
}
178178
);
179179
const purchaseBtn = page.locator('button[data-testid="purchase-cta-button"]').first();

0 commit comments

Comments
 (0)