Cypress Fun

RRe4XN5/19/2022
Yeah, unfortunately it ain't that simple 😅 Cypress, like you say, automatically retries things, and it already has a default timeout of 4s. The reason I have a bunch of cy.wait() (which isn't an ideal solution) is to wait for Foundry render animations to finish. When an element is rendered, Cypress will detect it and proceed with the test, but if it isn't fully visible, then that can lead to some weird behavior. That's why changing the timeout of cy.get() doesn't really do anything, as Cypress will detect the element anyway. I specifically want to wait for it to finish its rendering animation.
UUUnknown User5/20/2022
3 Messages Not Public
Sign In & Join Server To View
RRe4XN5/20/2022
Ah, that might just allow me to bypass the hangup at login 🤔 I'll test it out and see what happens!
UUUnknown User5/21/2022
5 Messages Not Public
Sign In & Join Server To View
RRe4XN5/21/2022
I guess it's a difference of philosophy. I've used Cypress for a bit and haven't really run into a situation where I missed awaits. I actually strayed away from Playwright/Puppeteer because I couldn't be bothered to spam the await keyword everywhere xD
UUUnknown User5/21/2022
5 Messages Not Public
Sign In & Join Server To View
RRe4XN5/21/2022
Yeah, it takes a while to run unless you do it headless. My system setup takes 40s and I haven't even got to testing rolls 😬
UUUnknown User5/21/2022
3 Messages Not Public
Sign In & Join Server To View
RRe4XN5/21/2022
It does include that
UUUnknown User5/21/2022
2 Messages Not Public
Sign In & Join Server To View
RRe4XN5/21/2022
I'll have to take a look when I get back home xD What time is it over there? It seems our timezones are wildly different, I haven't been able to catch you to do voice, ahahah
UUUnknown User5/21/2022
5 Messages Not Public
Sign In & Join Server To View
RRe4XN5/21/2022
I think you can do it by passing env variables to your run command and having that variable in Gitlab/GitHub secrets. Can't recall it off the top of my head, though
UUUnknown User5/21/2022
3 Messages Not Public
Sign In & Join Server To View
RRe4XN5/21/2022
I think you might be able to combine Cypress with something like Jest to get the full package of testing. I've never really used Cypress for anything other than E2E, so not sure if I can help in this regard 😅
RRe4XN5/21/2022
But since Cypress runs in browser, I find it odd you can't access game 🤔
UUUnknown User5/21/2022
5 Messages Not Public
Sign In & Join Server To View
RRe4XN5/21/2022
Ah, I see the issue. No clue how to work around that though, sorry
UUUnknown User5/21/2022
6 Messages Not Public
Sign In & Join Server To View
RRe4XN5/21/2022
That's pretty dope. My system has a dependency on socketlib for one important functionality. But still, I think I'd prefer enabling the module the way a system user would, i.e. by navigating menus and clicking the checkboxes and buttons. It feels more in line with the whole E2E concept, I think 😅
UUUnknown User5/21/2022
Message Not Public
Sign In & Join Server To View
RRe4XN5/21/2022
If you want to hop in voice I'm available now. I still haven't managed to get things to run headless.
UUUnknown User5/21/2022
Message Not Public
Sign In & Join Server To View
RRe4XN5/21/2022
Power went out
RRe4XN5/21/2022
I might be a few mins
UUUnknown User5/21/2022
4 Messages Not Public
Sign In & Join Server To View
RRe4XN5/21/2022
Hmm, that makes sense, but I don't think I'm changing origins within my tests 🤔 If that were the case, then the same would happen when not running headless, right?
UUUnknown User5/22/2022
3 Messages Not Public
Sign In & Join Server To View
RRe4XN5/22/2022
Yeah, I have. If I run the Electron browser then Foundry doesn't pop the warning, so I assume it is enabled by default on that browser.
RRe4XN5/22/2022
At least, I haven't had any issues on Electron, as opposed to Edge, for example. I only ever have these issues on headless mode, though.
RRe4XN5/22/2022
When running the application I can test all browsers with no issues.