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
@@ -94,7 +94,7 @@ export default async function () {
94
94
k6 doesn't implement fixtures like Playwright does. Instead, use the `browser` class to retrieve a `page` within its own context. After that, you can use the usual `page` methods such as `goto` or `click`:
@@ -219,7 +219,7 @@ To convert this Playwright script to k6, create a new file named `pw-migrated.js
219
219
First, create two `scenarios` and point them to two exported functions using the `exec` field in each scenario:
220
220
221
221
```js
222
-
import { expect } from "https://jslib.k6.io/k6-testing/0.6.0/index.js";
222
+
import { expect } from 'https://jslib.k6.io/k6-testing/{{< param "JSLIB_TESTING_VERSION" >}}/index.js';
223
223
import { browser } from 'k6/browser';
224
224
225
225
export const options = {
@@ -257,7 +257,7 @@ export async function userLogin() {
257
257
Next, copy the test code into the respective exported functions. Since k6 doesn't have fixtures, use the imported `browser` class to create a `newPage`:
258
258
259
259
```js
260
-
import { expect } from "https://jslib.k6.io/k6-testing/0.6.0/index.js";
260
+
import { expect } from 'https://jslib.k6.io/k6-testing/{{< param "JSLIB_TESTING_VERSION">}}/index.js';
0 commit comments