connorads / stackoverflow-fanatic

Earn Stack Overflow's Fanatic Badge automagically using GitHub Actions 🏆
MIT License
22 stars 2 forks source link

Workflow fails (timeout) just after login during "go to profile" #32

Closed beuted closed 1 year ago

beuted commented 1 year ago

image

What I've tried:

I'm new to playright maybe there is a way to debug this easily ?

connorads commented 1 year ago

Salut @beuted,

It's been a while since I've looked at this so it could be broken 🤷‍♂️

Have you tried running it in non-headless mode? This lets you see the browser as it's clicking around etc. const browser = await playwright['chromium'].launch({ headless: false });

https://playwright.dev/docs/debug#headed-mode Apparently there's a slowMo feature which I haven't used before.

beuted commented 1 year ago

Nah I think the issue is that some of the elements class and id have changed since you implemented it. (Even the tests of the repo are broken I think) I'll try to fix it on my side and send a PR on your repo if I manage to fix it :)

beuted commented 1 year ago

I've created this PR https://github.com/connorads/stackoverflow-fanatic/pull/33

beuted commented 1 year ago

And this one to be merged first to fix the tests: https://github.com/connorads/stackoverflow-fanatic/pull/34

connorads commented 1 year ago

Merci beaucoup monsieur 🙏 Merged both the PRs. Is it all working now?

Bear in mind that the Readme currently lies a bit https://github.com/connorads/stackoverflow-fanatic/issues/15#issuecomment-915559163 👀

beuted commented 1 year ago

A manual run worked so I think it should be good. I'll check tomorrow if it has run in the night :)

connorads commented 1 year ago

Hey @beuted, I'm guessing it is working now and can close this? 👀

beuted commented 1 year ago

Yeap thanks