Skip to content

Commit c5f3cbc

Browse files
authored
Fix async step callback (#4869)
1 parent dfe949f commit c5f3cbc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/en/observability/synthetics-create-test.asciidoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,10 @@ A basic two-step journey would look like this:
106106
[source,js]
107107
----
108108
journey('Journey name', ({ page, browser, client, params, request }) => {
109-
step('Step 1 name', () => {
109+
step('Step 1 name', async () => {
110110
// Do something here
111111
});
112-
step('Step 2 name', () => {
112+
step('Step 2 name', async () => {
113113
// Do something else here
114114
});
115115
});
@@ -120,7 +120,7 @@ For example, a basic first step might load a web page:
120120

121121
[source,js]
122122
----
123-
step('Load the demo page', () => {
123+
step('Load the demo page', async () => {
124124
await page.goto('https://elastic.github.io/synthetics-demo/'); <1>
125125
});
126126
----

0 commit comments

Comments
 (0)