File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
next/using-k6-browser/recommended-practices
v0.52.x/using-k6-browser/recommended-practices
v0.53.x/using-k6-browser/recommended-practices Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ export async function checkFrontend() {
86
86
try {
87
87
await page .goto (BASE_URL );
88
88
89
- check (page .locator (' h1' ), {
89
+ await check (page .locator (' h1' ), {
90
90
' header' : async lo => await lo .textContent () == ' Looking to break out of your pizza routine?'
91
91
});
92
92
@@ -185,7 +185,7 @@ export async function checkFrontend() {
185
185
186
186
try {
187
187
await page .goto (BASE_URL );
188
- check (page .locator (' h1' ), {
188
+ await check (page .locator (' h1' ), {
189
189
' header' : async lo => await lo .textContent () == ' Looking to break out of your pizza routine?'
190
190
});
191
191
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ export async function checkFrontend() {
86
86
try {
87
87
await page .goto (BASE_URL );
88
88
89
- check (page .locator (' h1' ), {
89
+ await check (page .locator (' h1' ), {
90
90
' header' : async lo => await lo .textContent () == ' Looking to break out of your pizza routine?'
91
91
});
92
92
@@ -185,7 +185,7 @@ export async function checkFrontend() {
185
185
186
186
try {
187
187
await page .goto (BASE_URL );
188
- check (page .locator (' h1' ), {
188
+ await check (page .locator (' h1' ), {
189
189
' header' : async lo => await lo .textContent () == ' Looking to break out of your pizza routine?'
190
190
});
191
191
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ export async function checkFrontend() {
86
86
try {
87
87
await page .goto (BASE_URL );
88
88
89
- check (page .locator (' h1' ), {
89
+ await check (page .locator (' h1' ), {
90
90
' header' : async lo => await lo .textContent () == ' Looking to break out of your pizza routine?'
91
91
});
92
92
@@ -185,7 +185,7 @@ export async function checkFrontend() {
185
185
186
186
try {
187
187
await page .goto (BASE_URL );
188
- check (page .locator (' h1' ), {
188
+ await check (page .locator (' h1' ), {
189
189
' header' : async lo => await lo .textContent () == ' Looking to break out of your pizza routine?'
190
190
});
191
191
You can’t perform that action at this time.
0 commit comments