Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I mean we have for example this
{#await promise} <p>...waiting</p> {:then number} <p>The number is {number}</p> {:catch error} <p style="color: red">{error.message}</p> {/await}
but we can to this
`<script>
let res;
getRandomNumber().then(r => {
res = r
});
</script>
{#if res}
{res}
{/if}`
the way how we can handle errors and loading states are amazing, but am I asking, I want to write ui tests with playwright, where I need to load the ui and then test, but with this statement, it does not load in the testing env
Beta Was this translation helpful? Give feedback.
All reactions