Commit graph

153 commits

Author SHA1 Message Date
Jordy Mendoza
bab4c105f1 -Fix notifications
-Add support for epic games bundles
2024-05-01 11:17:47 -06:00
Ralf Vogler
28bcceb285 eg: enter date of birth if age confirmation pops up, #275 2023-12-31 16:58:56 +01:00
Ralf Vogler
c3657f05ac workaround for cropped viewport (Playwright regression), fixes #277 2023-12-28 17:56:09 +01:00
Ralf Vogler
7ca79bd413 eg: debug window.screen 2023-12-28 17:31:23 +01:00
Ralf Vogler
105f6f414a eg: only ask for password after email submit -> notice captcha before 2023-12-26 17:49:51 +01:00
Ralf Vogler
64676795d1 mv {config,migrate,util,version}.js src/ 2023-12-26 17:09:14 +01:00
Ralf Vogler
09a364c67d extract chrome-specific comments/args into util.js/launchChromium 2023-12-26 16:48:25 +01:00
Ralf Vogler
68b66444ca eg: set cookie to void 'please provide your date of birth', closes #275 2023-12-24 15:52:59 +01:00
Ralf Vogler
9f97805517 debug navigator.{userAgent, platform} 2023-12-21 16:38:12 +01:00
Ralf Vogler
30957d63d0 DEBUG_NETWORK=1 to log network requests and responses instead of DEBUG && RECORD 2023-12-21 16:16:48 +01:00
Ralf Vogler
19e9bb9cfc eg: changed: move password fill and fix captcha locators, #260 2023-12-21 01:55:54 +01:00
Ralf Vogler
76597f4315 eg: include link to game in captcha notification, closes #259
TODO use purchaseURL from https://github.com/vogler/free-games-claimer/pull/130
2023-12-19 11:52:35 +01:00
Ralf Vogler
0832ae57f5 run eslint --fix . 2023-11-08 01:16:49 +01:00
Ralf Vogler
e4e4f2eafa fix eslint errors 2023-11-07 18:10:22 +01:00
Ralf Vogler
2eaf6f0598 .eslintignore -> .gitignore, no-unused-vars: ignore args starting with _
https://eslint.org/docs/latest/rules/no-unused-vars#argsignorepattern
https://eslint.org/docs/latest/rules/no-undef
2023-11-07 17:57:10 +01:00
Ralf Vogler
0ab9935fb5 eg: catch timeout in case there are no free games available, #210 2023-11-06 19:22:43 +01:00
Ralf Vogler
b99a154267 Revert "workaround for recordVideo broken in Playwright 1.36"
This reverts commit 13b2917dd0.

Fine to do after upgrade to 1.39 in 75f7d77445.
which included https://github.com/microsoft/playwright/issues/27086
2023-11-02 16:26:45 +01:00
Ralf Vogler
a374d48345 eg: fix login (email/password split), closes #236 2023-10-25 19:48:58 +02:00
Ralf Vogler
d73a523fe7 eg: fix sign in, user displayname, #236 2023-10-25 19:44:52 +02:00
Ralf Vogler
04787909c7 eg: waitFor order confirmation to be attached instead of visible, #233 2023-10-13 00:03:11 +02:00
Ralf Vogler
41f1f95509 PW: replace deprecated type() with pressSequentially() for OTPs 2023-09-18 14:02:15 +02:00
Ralf Vogler
13b2917dd0 workaround for recordVideo broken in Playwright 1.36
Recording videos with relative path as in docs was broken for Firefox.
Issue: https://github.com/microsoft/playwright/issues/27086
Can be reverted after PR is available in release: https://github.com/microsoft/playwright/pull/27099
2023-09-18 13:03:04 +02:00
Ralf Vogler
b748460b73 disable Playwright's handleSIGINT and close context ourselves to save recordings also on SIGINT 2023-09-18 12:58:20 +02:00
Ralf Vogler
1fbabbc0f2 log path of recorded video 2023-09-18 12:49:23 +02:00
Ralf Vogler
97882c76c3 eg: debug: window.screen 2023-09-07 13:25:14 +02:00
Ralf Vogler
38975e811b eg: error: Incorrect repsonse for captcha! 2023-08-31 23:08:29 +02:00
Ralf Vogler
5ae4ce5666 eg: option TIME=1 to log duration of steps, #183 2023-08-31 18:59:10 +02:00
Ralf Vogler
93d082e700 eg: comment userAgent firefox (docker) 2023-08-31 17:05:12 +02:00
Ralf Vogler
621032e459 eg: notify about captcha before claim, closes #191 2023-08-30 19:21:24 +02:00
KevinMatt
6bb1dca934
epic-games: captcha on login: await notify (#195)
Adding async handle in captcha notify
2023-08-28 09:16:30 +02:00
Ralf Vogler
6a7cca31a4 update dependencies via ncu -u, lowdb: pass defaultData
dotenv                          ^16.0.3  →  ^16.3.1
  enquirer                         ^2.3.6  →   ^2.4.1
  lowdb                            ^5.1.0  →   ^6.0.1
  playwright-firefox              ^1.31.0  →  ^1.37.1
  puppeteer-extra-plugin-stealth  ^2.11.1  →  ^2.11.2

https://github.com/typicode/lowdb/releases/tag/v6.0.0
> Require defaultData parameter for Low and LowSync constructors to improve TypeScript experience
2023-08-24 13:14:39 +02:00
Ralf Vogler
b5ead8ea21 SCREENSHOTS_DIR=0 to disable screenshots, fixes #172 2023-07-20 16:10:50 +02:00
Ralf Vogler
6b13287b61 eg: click 'Yes, buy now' if 'This edition contains something you already have. Still interested?'
Happened for add-on https://store.epicgames.com/en-US/p/the-sims-4--the-daring-lifestyle-bundle
2023-05-11 18:38:44 +02:00
Ralf Vogler
8f174c4bf0 eg: RECORD=1 to recordVideo & recordHar; fixed: recordVideo can't be false
Strangely `recordHar` can be false instead of undefined, but made it symmetric.
2023-05-08 17:29:14 +02:00
Ralf Vogler
7fc0fbc69c Revert "eg: RECORD=1 to recordVideo & recordHar"
This reverts commit 066a99c77c.
2023-05-05 13:36:51 +02:00
Ralf Vogler
066a99c77c eg: RECORD=1 to recordVideo & recordHar 2023-05-05 09:54:21 +02:00
Ralf Vogler
ce51c269f8 eg: only notify for status 'claimed' or 'failed'; DRYRUN -> 'skipped' 2023-05-05 09:30:37 +02:00
Ralf Vogler
bc8a89f365 log 'DRYRUN=1 -> Skip order!' 2023-04-27 19:14:48 +02:00
l-skywalker
670262c118 fix: update epic confirm text 2023-04-20 20:12:49 +02:00
Ralf Vogler
28146c7d69 eg: 2s delay after click Continue, #120 2023-04-07 10:23:19 +02:00
Ralf Vogler
e22bb22a53 eg: try click delay for #120 2023-04-07 09:51:18 +02:00
Ralf Vogler
04f503fea7 eg: mention required base game for free Add-Ons, #106 2023-03-30 16:53:43 +02:00
Ralf Vogler
9285af2544 eg: notify_games filter status 'requires base game', fixes #112
fix 352ee753c9
2023-03-30 14:06:57 +02:00
Ralf Vogler
352ee753c9 eg: skip if 'requires base game', fix #106 2023-03-23 19:57:10 +01:00
Ralf Vogler
b7d5d43078 eg: wait for "Place Order" button to not be loading, fixes #84 2023-03-17 20:59:55 +01:00
Ralf Vogler
b75f538d8a eg: add EG_PARENTALPIN to enter Parental Controls PIN, #98 2023-03-17 11:19:38 +01:00
Ralf Vogler
4f1ca53d1b eg: fix waiting for captcha for non-EU accounts
https://github.com/vogler/free-games-claimer/issues/84#issuecomment-1462993079
2023-03-16 15:56:00 +01:00
Ralf Vogler
9df80fa6d8 eg: wait 2s before 'Place Order', fix #84 for everyone? 2023-03-10 09:16:54 +01:00
Ralf Vogler
0cfb9d29aa eg: Accept End User License Agreement (only needed once per account) 2023-03-09 16:21:19 +01:00
Ralf Vogler
cbdea1b5d0 add username to notification of claimed games, closes #88 2023-03-06 21:15:42 +01:00