Skip to content

Commit

Permalink
docs(user-flows): use new api location (#14533)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamraine committed Feb 8, 2023
1 parent db668e7 commit ef8d3f5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/user-flows.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ In DevTools, navigation is easy: ensure it's the selected mode and then click _A
```js
import {writeFileSync} from 'fs';
import puppeteer from 'puppeteer';
import {startFlow} from 'lighthouse/lighthouse-core/fraggle-rock/api.js';
import {startFlow} from 'lighthouse';

(async function() {
const browser = await puppeteer.launch();
Expand Down Expand Up @@ -83,7 +83,7 @@ In DevTools, select "Timespan" as the mode and click _Start timespan_. Record wh
```js
import {writeFileSync} from 'fs';
import puppeteer from 'puppeteer';
import {startFlow} from 'lighthouse/lighthouse-core/fraggle-rock/api.js';
import {startFlow} from 'lighthouse';

(async function() {
const browser = await puppeteer.launch();
Expand Down Expand Up @@ -118,7 +118,7 @@ In DevTools, select "Snapshot" as the mode. Set up the page in the state you wan
```js
import {writeFileSync} from 'fs';
import puppeteer from 'puppeteer';
import {startFlow} from 'lighthouse/lighthouse-core/fraggle-rock/api.js';
import {startFlow} from 'lighthouse';

(async function() {
const browser = await puppeteer.launch();
Expand Down Expand Up @@ -157,7 +157,7 @@ The below example codifies a user flow for an ecommerce site where the user navi
import {writeFileSync} from 'fs';
import puppeteer from 'puppeteer';
import * as pptrTestingLibrary from 'pptr-testing-library';
import {startFlow} from 'lighthouse/lighthouse-core/fraggle-rock/api.js';
import {startFlow} from 'lighthouse';

const {getDocument, queries} = pptrTestingLibrary;

Expand Down

0 comments on commit ef8d3f5

Please sign in to comment.