You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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