Guilherme Rosado
Guilherme Rosado
Explore posts from servers
SSolidJS
Created by Guilherme Rosado on 3/31/2023 in #support
How do I test this behavior?
Uh nice!
42 replies
SSolidJS
Created by Guilherme Rosado on 3/31/2023 in #support
How do I test this behavior?
Alright! What voice channel should we go?
42 replies
SSolidJS
Created by Guilherme Rosado on 3/31/2023 in #support
How do I test this behavior?
🙌
42 replies
SSolidJS
Created by Guilherme Rosado on 3/31/2023 in #support
How do I test this behavior?
If you're still up to!
42 replies
SSolidJS
Created by Guilherme Rosado on 3/31/2023 in #support
How do I test this behavior?
Ups! I'm sorry just answering now. Well that would be awesome.
42 replies
SSolidJS
Created by Guilherme Rosado on 3/31/2023 in #support
How do I test this behavior?
I'll try later on 🥲
42 replies
SSolidJS
Created by Guilherme Rosado on 3/31/2023 in #support
How do I test this behavior?
I gave up
42 replies
SSolidJS
Created by Guilherme Rosado on 3/31/2023 in #support
How do I test this behavior?
Yeah! It isn't injecting the turnstile property on window
42 replies
SSolidJS
Created by Guilherme Rosado on 3/31/2023 in #support
How do I test this behavior?
Really love using the Real DOM, then I can just hammer on the gsap and other client-side libraries
42 replies
SSolidJS
Created by Guilherme Rosado on 3/31/2023 in #support
How do I test this behavior?
Hehe I've seen 🙂 Currently using lot of solid, it's been an awesome experience!
42 replies
SSolidJS
Created by Guilherme Rosado on 3/31/2023 in #support
How do I test this behavior?
Will check it out
42 replies
SSolidJS
Created by Guilherme Rosado on 3/31/2023 in #support
How do I test this behavior?
Pretty neat
42 replies
SSolidJS
Created by Guilherme Rosado on 3/31/2023 in #support
How do I test this behavior?
Deam
42 replies
SSolidJS
Created by Guilherme Rosado on 3/31/2023 in #support
How do I test this behavior?
Maybe this isn't possible to test? window behaves differently on jest env?
42 replies
SSolidJS
Created by Guilherme Rosado on 3/31/2023 in #support
How do I test this behavior?
The turnstile isn't injected into the window object
42 replies
SSolidJS
Created by Guilherme Rosado on 3/31/2023 in #support
How do I test this behavior?
Yeah!
42 replies
SSolidJS
Created by Guilherme Rosado on 3/31/2023 in #support
How do I test this behavior?
const scriptTag = document.head.querySelector("#turnstile-script");
expect(scriptTag).toBeInTheDocument();

const scriptLoadPromise = new Promise<void>((resolve) => {
console.log("scriptTag: ", scriptTag?.id);
scriptTag?.addEventListener("load", () => {
resolve();
});

});
await waitFor(() => scriptLoadPromise, { timeout: 5000 });
const scriptTag = document.head.querySelector("#turnstile-script");
expect(scriptTag).toBeInTheDocument();

const scriptLoadPromise = new Promise<void>((resolve) => {
console.log("scriptTag: ", scriptTag?.id);
scriptTag?.addEventListener("load", () => {
resolve();
});

});
await waitFor(() => scriptLoadPromise, { timeout: 5000 });
42 replies
SSolidJS
Created by Guilherme Rosado on 3/31/2023 in #support
How do I test this behavior?
@lexlohr This is not related to the library, but I'm pretty much stuck. I'm trying to test a <script> that is loaded async and is injected on the head of the DOM tree. This script is suposed to fetch the turnstile widget and then I can execute window.turnstile.render. The test hangs on loading the scripts (5 seconds limit) Do you have any experience when testing something like this?
42 replies
SSolidJS
Created by Guilherme Rosado on 3/31/2023 in #support
How do I test this behavior?
Thanks
42 replies
SSolidJS
Created by Guilherme Rosado on 3/31/2023 in #support
How do I test this behavior?
I think I got this 💪
42 replies