Cypress Fun

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.
UU
Unknown User•709d ago
R
Re4XN•709d ago
Ah, that might just allow me to bypass the hangup at login 🤔 I'll test it out and see what happens!
UU
Unknown User•708d ago
R
Re4XN•708d ago
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
UU
Unknown User•708d ago
R
Re4XN•708d ago
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 😬
UU
Unknown User•708d ago
R
Re4XN•708d ago
It does include that
UU
Unknown User•708d ago
R
Re4XN•708d ago
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
UU
Unknown User•708d ago
R
Re4XN•708d ago
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
UU
Unknown User•708d ago
R
Re4XN•708d ago
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 😅 But since Cypress runs in browser, I find it odd you can't access game 🤔
UU
Unknown User•708d ago
R
Re4XN•708d ago
Ah, I see the issue. No clue how to work around that though, sorry
UU
Unknown User•708d ago
R
Re4XN•708d ago
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 😅
UU
Unknown User•708d ago
R
Re4XN•708d ago
If you want to hop in voice I'm available now. I still haven't managed to get things to run headless.
UU
Unknown User•708d ago
R
Re4XN•708d ago
Power went out I might be a few mins
UU
Unknown User•707d ago
R
Re4XN•707d ago
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?
UU
Unknown User•707d ago
R
Re4XN•707d ago
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. 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. When running the application I can test all browsers with no issues.
Want results from more Discord servers?
Add your server
More Posts
preUpdateHook questionHey all, question for anyone who has a sec. I'm trying to use `preCreateActor` to add rolled values spitballing about jest mocksok. ok. ok. pure spitballing theory here. All the client side source exists in esmodule form (hopef1.6.1 testing@dnd5e Testing Action Requested but not required. version 1.6.1 is a bugfix version, it's pretty clconversion macro@max.pat did you have a macro or script which could change the old classFeatures data into advancemeAC calc changesI do not believe the data for AC actually changed, only the way it is calculated. evidence: no chang1.6.0 Custom Sheet ChangesLooking at the changes made which are breaking for custom sheets. Gonna make a thread for this.1.6.0 testingCommunity Testing Requests: For those of you interested in helping to QA this branch, I'll put togeHook documentationdnd5e Hook Documentation: https://gitlab.com/foundrynet/dnd5e/-/wikis/HooksTyphonJS Runtime Library v0.0.9 - Release CandidateAlrighty! The TyphonJS Runtime Library (TRL) v0.0.9 is out... In the last 2 weeks+ I have done massi1.6.0 - 82%@dnd5e - **No action Required** The 1.6.0 milestone is at 82% completion https://gitlab.com/foundryadvancement consumptionnow that I brought that up on #progress-reports @calego , could I maybe pester you later for some adAlternative Alignment System D&D5eWow, that is a really powerful way to codify alignment. I like it! Do you have any ideas as to how iconsumables chat data@Zhell > So that's odd. How come consumables work different and all other item types get a non-funcilthid stop dragActually, would it be possible to modify the core function that allows people to click and drag toke1.6.x mid-milestone update@dnd5e - **No Action Required** Milestone 1.6.0 is 69% Complete (_nice_) <https://gitlab.com/foundPlugin ContributorsI'm very proud to be the maintainer of a module (Export Sheet to PDF) that is getting many, many conmore-hooks-itemroll-hooksFor those of you interested in such things, I have hacked together a way to inject hooks into the mipreHooks5eJSON.stringify jankI discovered that the problem is JSON.stringify, not parselayersTIL about CSS Layers. https://developer.mozilla.org/en-US/docs/Web/CSS/@layer ```css @layer utiliti