Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions solutions/observability/apps/write-synthetic-test.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ A basic two-step journey would look like this:

```js
journey('Journey name', ({ page, browser, client, params, request }) => {
step('Step 1 name', () => {
step('Step 1 name', async () => {
// Do something here
});
step('Step 2 name', () => {
step('Step 2 name', async () => {
// Do something else here
});
});
Expand All @@ -110,7 +110,7 @@ journey('Journey name', ({ page, browser, client, params, request }) => {
Steps can be as simple or complex as you need them to be. For example, a basic first step might load a web page:

```js
step('Load the demo page', () => {
step('Load the demo page', async () => {
await page.goto('https://elastic.github.io/synthetics-demo/'); <1>
});
```
Expand Down
Loading