Skip to content

Expected

What the reader should see when a step worked: a green light and a few words.

import Expected from '@sypnia/ui/astro/Expected.astro'

On this page
  1. After a command
  2. When to use it
  3. For everyone

After a command

You should see

The terminal prints «Logged in as you@example.com».

In the console

The new table is first in the list, with its row count.

Code
---
import Expected from '@sypnia/ui/astro/Expected.astro';
---
<div class="sy-docs sy-stack" style="min-height:0;background:none;--gap:var(--s-4)">
  <Expected><p>The terminal prints «Logged in as you@example.com».</p></Expected>
  <Expected title="In the console"><p>The new table is first in the list, with its row count.</p></Expected>
</div>

When to use it

Use it when

  • Inside a Step, after the command.

Do not use it when

  • Describing a failure: that is an Aside of type warning.

For everyone

  • The label is a word («You should see»), not only the light.
  1. After a command
  2. When to use it
  3. For everyone

    Search pages, sections and terms