{
  "format": 3,
  "id": "4.2",
  "title": "Fixture setup, use and teardown",
  "layers": {
    "runner": {
      "label": "Runner"
    }
  },
  "lanes": {
    "worker": {
      "label": "WORKER PROCESS · FIXTURES AND TEST",
      "layer": "runner"
    },
    "validation": {
      "label": "FIXTURE VALIDATION",
      "layer": "runner"
    }
  },
  "frames": {
    "workerScope": {
      "label": "Worker scope",
      "showWith": [
        "account",
        "browser",
        "context",
        "page",
        "todoPage",
        "test",
        "validation"
      ]
    },
    "testScope": {
      "label": "Test scope",
      "showWith": [
        "account",
        "browser",
        "context",
        "page",
        "todoPage",
        "test",
        "validation"
      ]
    }
  },
  "nodes": {
    "account": {
      "label": "account",
      "layer": "runner",
      "lane": "worker",
      "tag": "worker · custom",
      "mono": true
    },
    "browser": {
      "label": "browser",
      "layer": "runner",
      "lane": "worker",
      "tag": "worker · built-in",
      "mono": true
    },
    "context": {
      "label": "context",
      "layer": "runner",
      "lane": "worker",
      "tag": "test · built-in",
      "mono": true
    },
    "page": {
      "label": "page",
      "layer": "runner",
      "lane": "worker",
      "tag": "test · built-in",
      "mono": true
    },
    "todoPage": {
      "label": "todoPage",
      "layer": "runner",
      "lane": "worker",
      "tag": "test · custom",
      "mono": true
    },
    "test": {
      "label": "test({ account, todoPage })",
      "layer": "runner",
      "lane": "worker",
      "tag": "test body",
      "mono": true
    },
    "validation": {
      "label": "Scope check",
      "layer": "runner",
      "lane": "validation",
      "tag": "invalid dependency",
      "mono": true
    },
    "requestScope": {
      "label": "account → page",
      "layer": "runner",
      "lane": "validation",
      "tag": "worker asks for test",
      "mono": true
    },
    "restart": {
      "label": "New worker",
      "layer": "runner",
      "lane": "worker"
    }
  },
  "edges": {
    "bc": {
      "from": "browser",
      "to": "context",
      "label": "setup"
    },
    "cp": {
      "from": "context",
      "to": "page"
    },
    "pt": {
      "from": "page",
      "to": "todoPage"
    },
    "tt": {
      "from": "todoPage",
      "to": "test"
    },
    "at": {
      "from": "account",
      "to": "test",
      "label": "use"
    },
    "testTodo": {
      "from": "test",
      "to": "todoPage",
      "dashed": true
    },
    "todoPage": {
      "from": "todoPage",
      "to": "page",
      "dashed": true
    },
    "pageContext": {
      "from": "page",
      "to": "context",
      "dashed": true
    },
    "contextBrowser": {
      "from": "context",
      "to": "browser",
      "dashed": true
    },
    "testAccount": {
      "from": "test",
      "to": "account",
      "dashed": true
    },
    "scope": {
      "from": "requestScope",
      "to": "validation"
    }
  },
  "scenarios": [
    {
      "id": "intro",
      "label": "How fixtures work",
      "display": {
        "counterLabel": false,
        "edges": "progressive",
        "edgeBadges": true,
        "nodeBadges": false,
        "log": "incremental"
      },
      "steps": [
        {
          "id": "a-test-asks-for-fixtures-by-name",
          "title": "A test asks for fixtures by name",
          "text": "Playwright builds the fixtures a test asks for and the fixtures they depend on.",
          "show": [
            "test"
          ],
          "current": [
            "test"
          ],
          "edges": [],
          "defs": [
            "request"
          ],
          "code": "fixtures",
          "sources": [
            {
              "label": "test-fixtures-js.md:632-634",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/docs/src/test-fixtures-js.md#L632-L634"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.5 Options reset values, autos choose when to start",
              "href": "/4-runner/4-5-option-and-auto-fixtures/"
            }
          ]
        },
        {
          "id": "worker-fixtures-are-shared",
          "title": "Worker fixtures are shared",
          "text": "Worker fixtures are shared by tests in one worker and torn down when it stops. Among test results, only an unexpected one stops the worker. Skipped tests and expected failures do not trigger this stop.",
          "show": [
            "test",
            "account",
            "browser",
            "restart"
          ],
          "current": [
            "account",
            "browser"
          ],
          "edges": [],
          "defs": [
            "worker",
            "restart",
            "unexpected"
          ],
          "sources": [
            {
              "label": "workerMain.ts:471-479",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/workerMain.ts#L471-L479"
            },
            {
              "label": "testInfo.ts:482-484",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/testInfo.ts#L482-L484"
            },
            {
              "label": "test-retries-js.md:36",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/docs/src/test-retries-js.md#L36"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.5 Options reset values, autos choose when to start",
              "href": "/4-runner/4-5-option-and-auto-fixtures/"
            }
          ]
        },
        {
          "id": "dependencies-are-set-up-first",
          "title": "Dependencies are set up first",
          "text": "Setup goes from browser to context, page and todoPage.",
          "show": [
            "test",
            "account",
            "browser",
            "context",
            "page",
            "todoPage",
            "restart"
          ],
          "current": [
            "browser",
            "context",
            "page",
            "todoPage"
          ],
          "edges": [
            "bc",
            "cp",
            "pt"
          ],
          "defs": [
            "dependency"
          ],
          "sources": [
            {
              "label": "test-fixtures-js.md:632-634",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/docs/src/test-fixtures-js.md#L632-L634"
            },
            {
              "label": "fixtureRunner.ts:213-215",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L213-L215"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.5 Options reset values, autos choose when to start",
              "href": "/4-runner/4-5-option-and-auto-fixtures/"
            }
          ]
        },
        {
          "id": "a-fixture-calls-use-exactly-once",
          "title": "A fixture calls use() exactly once",
          "text": "Setup runs before use(), teardown after it; use() must be called exactly once.",
          "show": [
            "test",
            "account",
            "browser",
            "context",
            "page",
            "todoPage",
            "restart"
          ],
          "current": [
            "todoPage"
          ],
          "edges": [
            "bc",
            "cp",
            "pt",
            "tt",
            "at"
          ],
          "defs": [
            "use"
          ],
          "code": "fixtures",
          "sources": [
            {
              "label": "test-fixtures-js.md:632-634",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/docs/src/test-fixtures-js.md#L632-L634"
            },
            {
              "label": "fixtureRunner.ts:124-127",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L124-L127"
            },
            {
              "label": "fixtureRunner.ts:110-113",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L110-L113"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.5 Options reset values, autos choose when to start",
              "href": "/4-runner/4-5-option-and-auto-fixtures/"
            }
          ]
        },
        {
          "id": "the-test-receives-its-fixture-va",
          "title": "The test receives its fixture values",
          "text": "Each test receives a new context, page and todoPage in this example.",
          "show": [
            "test",
            "account",
            "browser",
            "context",
            "page",
            "todoPage",
            "restart"
          ],
          "current": [
            "test"
          ],
          "edges": [
            "bc",
            "cp",
            "pt",
            "tt",
            "at"
          ],
          "defs": [
            "body"
          ],
          "sources": [
            {
              "label": "test-fixtures-js.md:632-634",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/docs/src/test-fixtures-js.md#L632-L634"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.5 Options reset values, autos choose when to start",
              "href": "/4-runner/4-5-option-and-auto-fixtures/"
            }
          ]
        },
        {
          "id": "teardown-runs-in-reverse",
          "title": "Teardown runs in reverse",
          "text": "Cleanup visits dependers before dependencies and reports the first error after trying the others. A teardown with no time left skips its code.",
          "show": [
            "test",
            "account",
            "browser",
            "context",
            "page",
            "todoPage",
            "restart"
          ],
          "current": [
            "todoPage",
            "page",
            "context"
          ],
          "edges": [
            "testTodo",
            "todoPage",
            "pageContext",
            "contextBrowser",
            "testAccount"
          ],
          "defs": [
            "cleanup"
          ],
          "code": "reverse",
          "sources": [
            {
              "label": "fixtureRunner.ts:213-215",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L213-L215"
            },
            {
              "label": "fixtureRunner.ts:218-230",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L218-L230"
            },
            {
              "label": "fixtureRunner.ts:138-149",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L138-L149"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.5 Options reset values, autos choose when to start",
              "href": "/4-runner/4-5-option-and-auto-fixtures/"
            }
          ]
        },
        {
          "id": "invalid-scope-stops-before-the-t",
          "title": "Invalid scope stops before the test",
          "text": "A worker fixture cannot depend on a test fixture.",
          "show": [
            "test",
            "account",
            "browser",
            "context",
            "page",
            "todoPage",
            "validation",
            "requestScope",
            "restart"
          ],
          "current": [
            "validation",
            "requestScope"
          ],
          "edges": [
            "scope"
          ],
          "defs": [
            "validation"
          ],
          "code": "scope",
          "sources": [
            {
              "label": "fixtures.ts:203-205",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/common/fixtures.ts#L203-L205"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.5 Options reset values, autos choose when to start",
              "href": "/4-runner/4-5-option-and-auto-fixtures/"
            }
          ]
        }
      ]
    },
    {
      "id": "two-tests",
      "label": "Two tests",
      "display": {
        "counterLabel": true,
        "edges": "progressive",
        "edgeBadges": true,
        "nodeBadges": true,
        "log": "incremental"
      },
      "whole": {
        "title": "Two tests in one worker",
        "text": "Worker fixtures are built once. Test fixtures are built again for each test."
      },
      "steps": [
        {
          "id": "account-the-code-before-use-runs",
          "title": "account: the code before use() runs. Worker scope.",
          "text": "account: the code before use() runs. Worker scope.",
          "show": [
            "account",
            "browser",
            "context",
            "page",
            "todoPage",
            "test"
          ],
          "current": [
            "account"
          ],
          "edges": [
            "at"
          ],
          "defs": [],
          "log": [],
          "sources": [
            {
              "label": "test-fixtures-js.md:632-634",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/docs/src/test-fixtures-js.md#L632-L634"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.5 Options reset values, autos choose when to start",
              "href": "/4-runner/4-5-option-and-auto-fixtures/"
            }
          ]
        },
        {
          "id": "browser-starts-built-in-worker-f",
          "title": "browser starts. Built-in worker fixture.",
          "text": "browser starts. Built-in worker fixture.",
          "show": [
            "account",
            "browser",
            "context",
            "page",
            "todoPage",
            "test"
          ],
          "current": [
            "browser"
          ],
          "edges": [
            "bc"
          ],
          "defs": [],
          "log": [],
          "sources": [
            {
              "label": "test-fixtures-js.md:632-634",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/docs/src/test-fixtures-js.md#L632-L634"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.5 Options reset values, autos choose when to start",
              "href": "/4-runner/4-5-option-and-auto-fixtures/"
            }
          ]
        },
        {
          "id": "context-a-new-browser-context-fo",
          "title": "context: a new browser context for test 1.",
          "text": "context: a new browser context for test 1.",
          "show": [
            "account",
            "browser",
            "context",
            "page",
            "todoPage",
            "test"
          ],
          "current": [
            "context"
          ],
          "edges": [
            "bc"
          ],
          "defs": [],
          "log": [],
          "sources": [
            {
              "label": "test-fixtures-js.md:632-634",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/docs/src/test-fixtures-js.md#L632-L634"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.5 Options reset values, autos choose when to start",
              "href": "/4-runner/4-5-option-and-auto-fixtures/"
            }
          ]
        },
        {
          "id": "page-a-new-page-in-that-context",
          "title": "page: a new page in that context.",
          "text": "page: a new page in that context.",
          "show": [
            "account",
            "browser",
            "context",
            "page",
            "todoPage",
            "test"
          ],
          "current": [
            "page"
          ],
          "edges": [
            "cp"
          ],
          "defs": [],
          "log": [],
          "sources": [
            {
              "label": "test-fixtures-js.md:632-634",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/docs/src/test-fixtures-js.md#L632-L634"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.5 Options reset values, autos choose when to start",
              "href": "/4-runner/4-5-option-and-auto-fixtures/"
            }
          ]
        },
        {
          "id": "todopage-the-code-before-use-run",
          "title": "todoPage: the code before use() runs.",
          "text": "todoPage: the code before use() runs.",
          "show": [
            "account",
            "browser",
            "context",
            "page",
            "todoPage",
            "test"
          ],
          "current": [
            "todoPage"
          ],
          "edges": [
            "pt"
          ],
          "defs": [],
          "log": [],
          "sources": [
            {
              "label": "test-fixtures-js.md:632-634",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/docs/src/test-fixtures-js.md#L632-L634"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.5 Options reset values, autos choose when to start",
              "href": "/4-runner/4-5-option-and-auto-fixtures/"
            }
          ]
        },
        {
          "id": "test-1-runs-with-account-and-tod",
          "title": "Test 1 runs with account and todoPage.",
          "text": "Test 1 runs with account and todoPage.",
          "show": [
            "account",
            "browser",
            "context",
            "page",
            "todoPage",
            "test"
          ],
          "current": [
            "test"
          ],
          "edges": [
            "tt"
          ],
          "defs": [],
          "log": [],
          "sources": [
            {
              "label": "test-fixtures-js.md:632-634",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/docs/src/test-fixtures-js.md#L632-L634"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.5 Options reset values, autos choose when to start",
              "href": "/4-runner/4-5-option-and-auto-fixtures/"
            }
          ]
        },
        {
          "id": "todopage-the-code-after-use-runs",
          "title": "todoPage: the code after use() runs.",
          "text": "todoPage: the code after use() runs.",
          "show": [
            "account",
            "browser",
            "context",
            "page",
            "todoPage",
            "test"
          ],
          "current": [
            "todoPage"
          ],
          "edges": [
            "testTodo"
          ],
          "defs": [],
          "log": [],
          "sources": [
            {
              "label": "test-fixtures-js.md:632-634",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/docs/src/test-fixtures-js.md#L632-L634"
            },
            {
              "label": "fixtureRunner.ts:213-215",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L213-L215"
            },
            {
              "label": "fixtureRunner.ts:218-230",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L218-L230"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.5 Options reset values, autos choose when to start",
              "href": "/4-runner/4-5-option-and-auto-fixtures/"
            }
          ]
        },
        {
          "id": "page-torn-down",
          "title": "page: torn down.",
          "text": "page: torn down.",
          "show": [
            "account",
            "browser",
            "context",
            "page",
            "todoPage",
            "test"
          ],
          "current": [
            "page"
          ],
          "edges": [
            "todoPage"
          ],
          "defs": [],
          "log": [],
          "sources": [
            {
              "label": "test-fixtures-js.md:632-634",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/docs/src/test-fixtures-js.md#L632-L634"
            },
            {
              "label": "fixtureRunner.ts:213-215",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L213-L215"
            },
            {
              "label": "fixtureRunner.ts:218-230",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L218-L230"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.5 Options reset values, autos choose when to start",
              "href": "/4-runner/4-5-option-and-auto-fixtures/"
            }
          ]
        },
        {
          "id": "context-the-browser-context-clos",
          "title": "context: the browser context closes.",
          "text": "context: the browser context closes.",
          "show": [
            "account",
            "browser",
            "context",
            "page",
            "todoPage",
            "test"
          ],
          "current": [
            "context"
          ],
          "edges": [
            "pageContext"
          ],
          "defs": [],
          "log": [],
          "sources": [
            {
              "label": "test-fixtures-js.md:632-634",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/docs/src/test-fixtures-js.md#L632-L634"
            },
            {
              "label": "fixtureRunner.ts:213-215",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L213-L215"
            },
            {
              "label": "fixtureRunner.ts:218-230",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L218-L230"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.5 Options reset values, autos choose when to start",
              "href": "/4-runner/4-5-option-and-auto-fixtures/"
            }
          ]
        },
        {
          "id": "test-2-starts-account-and-browse",
          "title": "Test 2 starts. account and browser are reused.",
          "text": "Test 2 starts. account and browser are reused.",
          "show": [
            "account",
            "browser",
            "context",
            "page",
            "todoPage",
            "test"
          ],
          "current": [
            "context"
          ],
          "edges": [
            "bc"
          ],
          "defs": [],
          "log": [],
          "sources": [
            {
              "label": "test-fixtures-js.md:632-634",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/docs/src/test-fixtures-js.md#L632-L634"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.5 Options reset values, autos choose when to start",
              "href": "/4-runner/4-5-option-and-auto-fixtures/"
            }
          ]
        },
        {
          "id": "page-a-new-page-for-test-2",
          "title": "page: a new page for test 2.",
          "text": "page: a new page for test 2.",
          "show": [
            "account",
            "browser",
            "context",
            "page",
            "todoPage",
            "test"
          ],
          "current": [
            "page"
          ],
          "edges": [
            "cp"
          ],
          "defs": [],
          "log": [],
          "sources": [
            {
              "label": "test-fixtures-js.md:632-634",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/docs/src/test-fixtures-js.md#L632-L634"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.5 Options reset values, autos choose when to start",
              "href": "/4-runner/4-5-option-and-auto-fixtures/"
            }
          ]
        },
        {
          "id": "todopage-the-code-before-use-run-2",
          "title": "todoPage: the code before use() runs again.",
          "text": "todoPage: the code before use() runs again.",
          "show": [
            "account",
            "browser",
            "context",
            "page",
            "todoPage",
            "test"
          ],
          "current": [
            "todoPage"
          ],
          "edges": [
            "pt"
          ],
          "defs": [],
          "log": [],
          "sources": [
            {
              "label": "test-fixtures-js.md:632-634",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/docs/src/test-fixtures-js.md#L632-L634"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.5 Options reset values, autos choose when to start",
              "href": "/4-runner/4-5-option-and-auto-fixtures/"
            }
          ]
        },
        {
          "id": "test-2-gets-the-same-account-and",
          "title": "Test 2 gets the same account and a new todoPage.",
          "text": "Test 2 gets the same account and a new todoPage.",
          "show": [
            "account",
            "browser",
            "context",
            "page",
            "todoPage",
            "test"
          ],
          "current": [
            "test"
          ],
          "edges": [
            "tt"
          ],
          "defs": [],
          "log": [],
          "sources": [
            {
              "label": "test-fixtures-js.md:632-634",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/docs/src/test-fixtures-js.md#L632-L634"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.5 Options reset values, autos choose when to start",
              "href": "/4-runner/4-5-option-and-auto-fixtures/"
            }
          ]
        },
        {
          "id": "todopage-the-code-after-use-runs-2",
          "title": "todoPage: the code after use() runs.",
          "text": "todoPage: the code after use() runs.",
          "show": [
            "account",
            "browser",
            "context",
            "page",
            "todoPage",
            "test"
          ],
          "current": [
            "todoPage"
          ],
          "edges": [
            "testTodo"
          ],
          "defs": [],
          "log": [],
          "sources": [
            {
              "label": "test-fixtures-js.md:632-634",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/docs/src/test-fixtures-js.md#L632-L634"
            },
            {
              "label": "fixtureRunner.ts:213-215",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L213-L215"
            },
            {
              "label": "fixtureRunner.ts:218-230",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L218-L230"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.5 Options reset values, autos choose when to start",
              "href": "/4-runner/4-5-option-and-auto-fixtures/"
            }
          ]
        },
        {
          "id": "page-torn-down-2",
          "title": "page: torn down.",
          "text": "page: torn down.",
          "show": [
            "account",
            "browser",
            "context",
            "page",
            "todoPage",
            "test"
          ],
          "current": [
            "page"
          ],
          "edges": [
            "todoPage"
          ],
          "defs": [],
          "log": [],
          "sources": [
            {
              "label": "test-fixtures-js.md:632-634",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/docs/src/test-fixtures-js.md#L632-L634"
            },
            {
              "label": "fixtureRunner.ts:213-215",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L213-L215"
            },
            {
              "label": "fixtureRunner.ts:218-230",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L218-L230"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.5 Options reset values, autos choose when to start",
              "href": "/4-runner/4-5-option-and-auto-fixtures/"
            }
          ]
        },
        {
          "id": "context-the-browser-context-clos-2",
          "title": "context: the browser context closes.",
          "text": "context: the browser context closes.",
          "show": [
            "account",
            "browser",
            "context",
            "page",
            "todoPage",
            "test"
          ],
          "current": [
            "context"
          ],
          "edges": [
            "pageContext"
          ],
          "defs": [],
          "log": [],
          "sources": [
            {
              "label": "test-fixtures-js.md:632-634",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/docs/src/test-fixtures-js.md#L632-L634"
            },
            {
              "label": "fixtureRunner.ts:213-215",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L213-L215"
            },
            {
              "label": "fixtureRunner.ts:218-230",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L218-L230"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.5 Options reset values, autos choose when to start",
              "href": "/4-runner/4-5-option-and-auto-fixtures/"
            }
          ]
        },
        {
          "id": "the-worker-stops-browser-closes",
          "title": "The worker stops. browser closes.",
          "text": "The worker stops. browser closes.",
          "show": [
            "account",
            "browser",
            "context",
            "page",
            "todoPage",
            "test"
          ],
          "current": [
            "browser"
          ],
          "edges": [
            "contextBrowser"
          ],
          "defs": [],
          "log": [],
          "sources": [
            {
              "label": "test-fixtures-js.md:632-634",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/docs/src/test-fixtures-js.md#L632-L634"
            },
            {
              "label": "fixtureRunner.ts:213-215",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L213-L215"
            },
            {
              "label": "fixtureRunner.ts:218-230",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L218-L230"
            },
            {
              "label": "workerMain.ts:471-479",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/workerMain.ts#L471-L479"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.5 Options reset values, autos choose when to start",
              "href": "/4-runner/4-5-option-and-auto-fixtures/"
            }
          ]
        },
        {
          "id": "account-the-code-after-use-runs",
          "title": "account: the code after use() runs. Worker scope ends.",
          "text": "account: the code after use() runs. Worker scope ends.",
          "show": [
            "account",
            "browser",
            "context",
            "page",
            "todoPage",
            "test"
          ],
          "current": [
            "account"
          ],
          "edges": [],
          "defs": [],
          "log": [],
          "sources": [
            {
              "label": "test-fixtures-js.md:632-634",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/docs/src/test-fixtures-js.md#L632-L634"
            },
            {
              "label": "fixtureRunner.ts:213-215",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L213-L215"
            },
            {
              "label": "fixtureRunner.ts:218-230",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L218-L230"
            },
            {
              "label": "workerMain.ts:471-479",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/workerMain.ts#L471-L479"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.5 Options reset values, autos choose when to start",
              "href": "/4-runner/4-5-option-and-auto-fixtures/"
            }
          ]
        }
      ],
      "flow": [
        {
          "node": "account",
          "step": "account-the-code-before-use-runs",
          "log": []
        },
        {
          "node": "browser",
          "step": "browser-starts-built-in-worker-f",
          "log": []
        },
        {
          "node": "context",
          "step": "context-a-new-browser-context-fo",
          "log": [],
          "edge": "bc"
        },
        {
          "node": "page",
          "step": "page-a-new-page-in-that-context",
          "log": [],
          "edge": "cp"
        },
        {
          "node": "todoPage",
          "step": "todopage-the-code-before-use-run",
          "log": [],
          "edge": "pt"
        },
        {
          "node": "test",
          "step": "test-1-runs-with-account-and-tod",
          "log": [],
          "edge": "tt"
        },
        {
          "node": "todoPage",
          "step": "todopage-the-code-after-use-runs",
          "log": [],
          "edge": "testTodo"
        },
        {
          "node": "page",
          "step": "page-torn-down",
          "log": [],
          "edge": "todoPage"
        },
        {
          "node": "context",
          "step": "context-the-browser-context-clos",
          "log": [],
          "edge": "pageContext"
        },
        {
          "node": "context",
          "step": "test-2-starts-account-and-browse",
          "log": [],
          "edge": "bc"
        },
        {
          "node": "page",
          "step": "page-a-new-page-for-test-2",
          "log": [],
          "edge": "cp"
        },
        {
          "node": "todoPage",
          "step": "todopage-the-code-before-use-run-2",
          "log": [],
          "edge": "pt"
        },
        {
          "node": "test",
          "step": "test-2-gets-the-same-account-and",
          "log": [],
          "edge": "tt"
        },
        {
          "node": "todoPage",
          "step": "todopage-the-code-after-use-runs-2",
          "log": [],
          "edge": "testTodo"
        },
        {
          "node": "page",
          "step": "page-torn-down-2",
          "log": [],
          "edge": "todoPage"
        },
        {
          "node": "context",
          "step": "context-the-browser-context-clos-2",
          "log": [],
          "edge": "pageContext"
        },
        {
          "node": "browser",
          "step": "the-worker-stops-browser-closes",
          "log": [],
          "edge": "contextBrowser"
        },
        {
          "node": "account",
          "step": "account-the-code-after-use-runs",
          "log": []
        }
      ]
    },
    {
      "id": "test-fails",
      "label": "A test fails",
      "display": {
        "counterLabel": true,
        "edges": "progressive",
        "edgeBadges": true,
        "nodeBadges": true,
        "log": "incremental"
      },
      "whole": {
        "title": "A test fails",
        "text": "Playwright stops the worker. The next test gets a new worker and new worker fixtures."
      },
      "steps": [
        {
          "id": "account-the-code-before-use-runs",
          "title": "account: the code before use() runs. Worker scope.",
          "text": "account: the code before use() runs. Worker scope.",
          "show": [
            "account",
            "browser",
            "context",
            "page",
            "todoPage",
            "test"
          ],
          "current": [
            "account"
          ],
          "edges": [
            "at"
          ],
          "defs": [],
          "log": [],
          "sources": [
            {
              "label": "test-fixtures-js.md:632-634",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/docs/src/test-fixtures-js.md#L632-L634"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.5 Options reset values, autos choose when to start",
              "href": "/4-runner/4-5-option-and-auto-fixtures/"
            }
          ]
        },
        {
          "id": "browser-starts-built-in-worker-f",
          "title": "browser starts. Built-in worker fixture.",
          "text": "browser starts. Built-in worker fixture.",
          "show": [
            "account",
            "browser",
            "context",
            "page",
            "todoPage",
            "test"
          ],
          "current": [
            "browser"
          ],
          "edges": [
            "bc"
          ],
          "defs": [],
          "log": [],
          "sources": [
            {
              "label": "test-fixtures-js.md:632-634",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/docs/src/test-fixtures-js.md#L632-L634"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.5 Options reset values, autos choose when to start",
              "href": "/4-runner/4-5-option-and-auto-fixtures/"
            }
          ]
        },
        {
          "id": "context-a-new-browser-context-fo",
          "title": "context: a new browser context for test 1.",
          "text": "context: a new browser context for test 1.",
          "show": [
            "account",
            "browser",
            "context",
            "page",
            "todoPage",
            "test"
          ],
          "current": [
            "context"
          ],
          "edges": [
            "bc"
          ],
          "defs": [],
          "log": [],
          "sources": [
            {
              "label": "test-fixtures-js.md:632-634",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/docs/src/test-fixtures-js.md#L632-L634"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.5 Options reset values, autos choose when to start",
              "href": "/4-runner/4-5-option-and-auto-fixtures/"
            }
          ]
        },
        {
          "id": "page-a-new-page-in-that-context",
          "title": "page: a new page in that context.",
          "text": "page: a new page in that context.",
          "show": [
            "account",
            "browser",
            "context",
            "page",
            "todoPage",
            "test"
          ],
          "current": [
            "page"
          ],
          "edges": [
            "cp"
          ],
          "defs": [],
          "log": [],
          "sources": [
            {
              "label": "test-fixtures-js.md:632-634",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/docs/src/test-fixtures-js.md#L632-L634"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.5 Options reset values, autos choose when to start",
              "href": "/4-runner/4-5-option-and-auto-fixtures/"
            }
          ]
        },
        {
          "id": "todopage-the-code-before-use-run",
          "title": "todoPage: the code before use() runs.",
          "text": "todoPage: the code before use() runs.",
          "show": [
            "account",
            "browser",
            "context",
            "page",
            "todoPage",
            "test"
          ],
          "current": [
            "todoPage"
          ],
          "edges": [
            "pt"
          ],
          "defs": [],
          "log": [],
          "sources": [
            {
              "label": "test-fixtures-js.md:632-634",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/docs/src/test-fixtures-js.md#L632-L634"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.5 Options reset values, autos choose when to start",
              "href": "/4-runner/4-5-option-and-auto-fixtures/"
            }
          ]
        },
        {
          "id": "test-1-fails",
          "title": "Test 1 fails.",
          "text": "Test 1 fails.",
          "show": [
            "account",
            "browser",
            "context",
            "page",
            "todoPage",
            "test"
          ],
          "current": [
            "test"
          ],
          "edges": [
            "tt"
          ],
          "defs": [],
          "log": [],
          "sources": [
            {
              "label": "test-fixtures-js.md:632-634",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/docs/src/test-fixtures-js.md#L632-L634"
            },
            {
              "label": "workerMain.ts:471-479",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/workerMain.ts#L471-L479"
            },
            {
              "label": "testInfo.ts:482-484",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/testInfo.ts#L482-L484"
            },
            {
              "label": "test-retries-js.md:36",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/docs/src/test-retries-js.md#L36"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.5 Options reset values, autos choose when to start",
              "href": "/4-runner/4-5-option-and-auto-fixtures/"
            }
          ]
        },
        {
          "id": "todopage-the-code-after-use-runs",
          "title": "todoPage: the code after use() runs.",
          "text": "todoPage: the code after use() runs.",
          "show": [
            "account",
            "browser",
            "context",
            "page",
            "todoPage",
            "test"
          ],
          "current": [
            "todoPage"
          ],
          "edges": [
            "testTodo"
          ],
          "defs": [],
          "log": [],
          "sources": [
            {
              "label": "test-fixtures-js.md:632-634",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/docs/src/test-fixtures-js.md#L632-L634"
            },
            {
              "label": "fixtureRunner.ts:213-215",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L213-L215"
            },
            {
              "label": "fixtureRunner.ts:218-230",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L218-L230"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.5 Options reset values, autos choose when to start",
              "href": "/4-runner/4-5-option-and-auto-fixtures/"
            }
          ]
        },
        {
          "id": "page-torn-down",
          "title": "page: torn down.",
          "text": "page: torn down.",
          "show": [
            "account",
            "browser",
            "context",
            "page",
            "todoPage",
            "test"
          ],
          "current": [
            "page"
          ],
          "edges": [
            "todoPage"
          ],
          "defs": [],
          "log": [],
          "sources": [
            {
              "label": "test-fixtures-js.md:632-634",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/docs/src/test-fixtures-js.md#L632-L634"
            },
            {
              "label": "fixtureRunner.ts:213-215",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L213-L215"
            },
            {
              "label": "fixtureRunner.ts:218-230",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L218-L230"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.5 Options reset values, autos choose when to start",
              "href": "/4-runner/4-5-option-and-auto-fixtures/"
            }
          ]
        },
        {
          "id": "context-the-browser-context-clos",
          "title": "context: the browser context closes.",
          "text": "context: the browser context closes.",
          "show": [
            "account",
            "browser",
            "context",
            "page",
            "todoPage",
            "test"
          ],
          "current": [
            "context"
          ],
          "edges": [
            "pageContext"
          ],
          "defs": [],
          "log": [],
          "sources": [
            {
              "label": "test-fixtures-js.md:632-634",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/docs/src/test-fixtures-js.md#L632-L634"
            },
            {
              "label": "fixtureRunner.ts:213-215",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L213-L215"
            },
            {
              "label": "fixtureRunner.ts:218-230",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L218-L230"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.5 Options reset values, autos choose when to start",
              "href": "/4-runner/4-5-option-and-auto-fixtures/"
            }
          ]
        },
        {
          "id": "worker-cleanup-the-worker-stops",
          "title": "Worker Cleanup: the worker stops. browser closes.",
          "text": "Worker Cleanup: the worker stops. browser closes.",
          "show": [
            "account",
            "browser",
            "context",
            "page",
            "todoPage",
            "test"
          ],
          "current": [
            "browser"
          ],
          "edges": [
            "contextBrowser"
          ],
          "defs": [],
          "log": [],
          "sources": [
            {
              "label": "test-fixtures-js.md:632-634",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/docs/src/test-fixtures-js.md#L632-L634"
            },
            {
              "label": "fixtureRunner.ts:213-215",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L213-L215"
            },
            {
              "label": "fixtureRunner.ts:218-230",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L218-L230"
            },
            {
              "label": "workerMain.ts:471-479",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/workerMain.ts#L471-L479"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.5 Options reset values, autos choose when to start",
              "href": "/4-runner/4-5-option-and-auto-fixtures/"
            }
          ]
        },
        {
          "id": "account-the-code-after-use-runs",
          "title": "account: the code after use() runs.",
          "text": "account: the code after use() runs.",
          "show": [
            "account",
            "browser",
            "context",
            "page",
            "todoPage",
            "test"
          ],
          "current": [
            "account"
          ],
          "edges": [],
          "defs": [],
          "log": [],
          "sources": [
            {
              "label": "test-fixtures-js.md:632-634",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/docs/src/test-fixtures-js.md#L632-L634"
            },
            {
              "label": "fixtureRunner.ts:213-215",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L213-L215"
            },
            {
              "label": "fixtureRunner.ts:218-230",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L218-L230"
            },
            {
              "label": "workerMain.ts:471-479",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/workerMain.ts#L471-L479"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.5 Options reset values, autos choose when to start",
              "href": "/4-runner/4-5-option-and-auto-fixtures/"
            }
          ]
        },
        {
          "id": "a-new-worker-starts-for-test-2",
          "title": "A new worker starts for test 2.",
          "text": "A new worker starts for test 2.",
          "show": [
            "account",
            "browser",
            "context",
            "page",
            "todoPage",
            "test",
            "restart"
          ],
          "current": [
            "restart"
          ],
          "edges": [],
          "defs": [
            "restart"
          ],
          "log": [],
          "sources": [
            {
              "label": "workerMain.ts:471-479",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/workerMain.ts#L471-L479"
            },
            {
              "label": "testInfo.ts:482-484",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/testInfo.ts#L482-L484"
            },
            {
              "label": "test-retries-js.md:36",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/docs/src/test-retries-js.md#L36"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.5 Options reset values, autos choose when to start",
              "href": "/4-runner/4-5-option-and-auto-fixtures/"
            }
          ]
        },
        {
          "id": "account-built-again-in-the-new-w",
          "title": "account: built again in the new worker.",
          "text": "account: built again in the new worker.",
          "show": [
            "account",
            "browser",
            "context",
            "page",
            "todoPage",
            "test",
            "restart"
          ],
          "current": [
            "account"
          ],
          "edges": [
            "at"
          ],
          "defs": [],
          "log": [],
          "sources": [
            {
              "label": "test-fixtures-js.md:632-634",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/docs/src/test-fixtures-js.md#L632-L634"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.5 Options reset values, autos choose when to start",
              "href": "/4-runner/4-5-option-and-auto-fixtures/"
            }
          ]
        },
        {
          "id": "browser-starts-again",
          "title": "browser starts again.",
          "text": "browser starts again.",
          "show": [
            "account",
            "browser",
            "context",
            "page",
            "todoPage",
            "test",
            "restart"
          ],
          "current": [
            "browser"
          ],
          "edges": [
            "bc"
          ],
          "defs": [],
          "log": [],
          "sources": [
            {
              "label": "test-fixtures-js.md:632-634",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/docs/src/test-fixtures-js.md#L632-L634"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.5 Options reset values, autos choose when to start",
              "href": "/4-runner/4-5-option-and-auto-fixtures/"
            }
          ]
        },
        {
          "id": "context-a-new-browser-context-fo-2",
          "title": "context: a new browser context for test 2.",
          "text": "context: a new browser context for test 2.",
          "show": [
            "account",
            "browser",
            "context",
            "page",
            "todoPage",
            "test",
            "restart"
          ],
          "current": [
            "context"
          ],
          "edges": [
            "bc"
          ],
          "defs": [],
          "log": [],
          "sources": [
            {
              "label": "test-fixtures-js.md:632-634",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/docs/src/test-fixtures-js.md#L632-L634"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.5 Options reset values, autos choose when to start",
              "href": "/4-runner/4-5-option-and-auto-fixtures/"
            }
          ]
        },
        {
          "id": "page-a-new-page-in-that-context-2",
          "title": "page: a new page in that context.",
          "text": "page: a new page in that context.",
          "show": [
            "account",
            "browser",
            "context",
            "page",
            "todoPage",
            "test",
            "restart"
          ],
          "current": [
            "page"
          ],
          "edges": [
            "cp"
          ],
          "defs": [],
          "log": [],
          "sources": [
            {
              "label": "test-fixtures-js.md:632-634",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/docs/src/test-fixtures-js.md#L632-L634"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.5 Options reset values, autos choose when to start",
              "href": "/4-runner/4-5-option-and-auto-fixtures/"
            }
          ]
        },
        {
          "id": "todopage-the-code-before-use-run-2",
          "title": "todoPage: the code before use() runs.",
          "text": "todoPage: the code before use() runs.",
          "show": [
            "account",
            "browser",
            "context",
            "page",
            "todoPage",
            "test",
            "restart"
          ],
          "current": [
            "todoPage"
          ],
          "edges": [
            "pt"
          ],
          "defs": [],
          "log": [],
          "sources": [
            {
              "label": "test-fixtures-js.md:632-634",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/docs/src/test-fixtures-js.md#L632-L634"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.5 Options reset values, autos choose when to start",
              "href": "/4-runner/4-5-option-and-auto-fixtures/"
            }
          ]
        },
        {
          "id": "test-2-passes",
          "title": "Test 2 passes.",
          "text": "Test 2 passes.",
          "show": [
            "account",
            "browser",
            "context",
            "page",
            "todoPage",
            "test",
            "restart"
          ],
          "current": [
            "test"
          ],
          "edges": [
            "tt"
          ],
          "defs": [],
          "log": [],
          "sources": [
            {
              "label": "test-fixtures-js.md:632-634",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/docs/src/test-fixtures-js.md#L632-L634"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.5 Options reset values, autos choose when to start",
              "href": "/4-runner/4-5-option-and-auto-fixtures/"
            }
          ]
        },
        {
          "id": "todopage-the-code-after-use-runs-2",
          "title": "todoPage: the code after use() runs.",
          "text": "todoPage: the code after use() runs.",
          "show": [
            "account",
            "browser",
            "context",
            "page",
            "todoPage",
            "test",
            "restart"
          ],
          "current": [
            "todoPage"
          ],
          "edges": [
            "testTodo"
          ],
          "defs": [],
          "log": [],
          "sources": [
            {
              "label": "test-fixtures-js.md:632-634",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/docs/src/test-fixtures-js.md#L632-L634"
            },
            {
              "label": "fixtureRunner.ts:213-215",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L213-L215"
            },
            {
              "label": "fixtureRunner.ts:218-230",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L218-L230"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.5 Options reset values, autos choose when to start",
              "href": "/4-runner/4-5-option-and-auto-fixtures/"
            }
          ]
        },
        {
          "id": "page-torn-down-2",
          "title": "page: torn down.",
          "text": "page: torn down.",
          "show": [
            "account",
            "browser",
            "context",
            "page",
            "todoPage",
            "test",
            "restart"
          ],
          "current": [
            "page"
          ],
          "edges": [
            "todoPage"
          ],
          "defs": [],
          "log": [],
          "sources": [
            {
              "label": "test-fixtures-js.md:632-634",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/docs/src/test-fixtures-js.md#L632-L634"
            },
            {
              "label": "fixtureRunner.ts:213-215",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L213-L215"
            },
            {
              "label": "fixtureRunner.ts:218-230",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L218-L230"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.5 Options reset values, autos choose when to start",
              "href": "/4-runner/4-5-option-and-auto-fixtures/"
            }
          ]
        },
        {
          "id": "context-the-browser-context-clos-2",
          "title": "context: the browser context closes.",
          "text": "context: the browser context closes.",
          "show": [
            "account",
            "browser",
            "context",
            "page",
            "todoPage",
            "test",
            "restart"
          ],
          "current": [
            "context"
          ],
          "edges": [
            "pageContext"
          ],
          "defs": [],
          "log": [],
          "sources": [
            {
              "label": "test-fixtures-js.md:632-634",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/docs/src/test-fixtures-js.md#L632-L634"
            },
            {
              "label": "fixtureRunner.ts:213-215",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L213-L215"
            },
            {
              "label": "fixtureRunner.ts:218-230",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L218-L230"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.5 Options reset values, autos choose when to start",
              "href": "/4-runner/4-5-option-and-auto-fixtures/"
            }
          ]
        }
      ],
      "flow": [
        {
          "node": "account",
          "step": "account-the-code-before-use-runs",
          "log": []
        },
        {
          "node": "browser",
          "step": "browser-starts-built-in-worker-f",
          "log": []
        },
        {
          "node": "context",
          "step": "context-a-new-browser-context-fo",
          "log": [],
          "edge": "bc"
        },
        {
          "node": "page",
          "step": "page-a-new-page-in-that-context",
          "log": [],
          "edge": "cp"
        },
        {
          "node": "todoPage",
          "step": "todopage-the-code-before-use-run",
          "log": [],
          "edge": "pt"
        },
        {
          "node": "test",
          "step": "test-1-fails",
          "log": [],
          "edge": "tt",
          "fail": true
        },
        {
          "node": "todoPage",
          "step": "todopage-the-code-after-use-runs",
          "log": [],
          "edge": "testTodo"
        },
        {
          "node": "page",
          "step": "page-torn-down",
          "log": [],
          "edge": "todoPage"
        },
        {
          "node": "context",
          "step": "context-the-browser-context-clos",
          "log": [],
          "edge": "pageContext"
        },
        {
          "node": "browser",
          "step": "worker-cleanup-the-worker-stops",
          "log": [],
          "edge": "contextBrowser"
        },
        {
          "node": "account",
          "step": "account-the-code-after-use-runs",
          "log": []
        },
        {
          "node": "restart",
          "step": "a-new-worker-starts-for-test-2",
          "log": []
        },
        {
          "node": "account",
          "step": "account-built-again-in-the-new-w",
          "log": []
        },
        {
          "node": "browser",
          "step": "browser-starts-again",
          "log": []
        },
        {
          "node": "context",
          "step": "context-a-new-browser-context-fo-2",
          "log": [],
          "edge": "bc"
        },
        {
          "node": "page",
          "step": "page-a-new-page-in-that-context-2",
          "log": [],
          "edge": "cp"
        },
        {
          "node": "todoPage",
          "step": "todopage-the-code-before-use-run-2",
          "log": [],
          "edge": "pt"
        },
        {
          "node": "test",
          "step": "test-2-passes",
          "log": [],
          "edge": "tt"
        },
        {
          "node": "todoPage",
          "step": "todopage-the-code-after-use-runs-2",
          "log": [],
          "edge": "testTodo"
        },
        {
          "node": "page",
          "step": "page-torn-down-2",
          "log": [],
          "edge": "todoPage"
        },
        {
          "node": "context",
          "step": "context-the-browser-context-clos-2",
          "log": [],
          "edge": "pageContext"
        }
      ]
    },
    {
      "id": "bad-dependency",
      "label": "Bad dependency",
      "display": {
        "counterLabel": true,
        "edges": "progressive",
        "edgeBadges": true,
        "nodeBadges": false,
        "log": "incremental"
      },
      "whole": {
        "title": "A worker fixture asks for a test fixture",
        "text": "account depends on page. Playwright reports the error, and no fixture is built."
      },
      "steps": [
        {
          "id": "worker-fixture-account-cannot-de",
          "title": "worker fixture \"account\" cannot depend on a test fixture \"page\" defined in <builtin>.",
          "text": "worker fixture \"account\" cannot depend on a test fixture \"page\" defined in <builtin>.",
          "show": [
            "validation",
            "requestScope"
          ],
          "current": [
            "validation"
          ],
          "edges": [
            "scope"
          ],
          "defs": [],
          "code": "scope",
          "log": [
            "worker fixture \"account\" cannot depend on a test fixture \"page\" defined in <builtin>."
          ],
          "sources": [
            {
              "label": "fixtures.ts:203-205",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/common/fixtures.ts#L203-L205"
            },
            {
              "label": "fixtures.ts:275-278",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/common/fixtures.ts#L275-L278"
            }
          ],
          "deeper": [
            {
              "title": "0.1 API calls leave from Node, page calls from the browser",
              "href": "/0-anatomy/0-1-anatomy-of-a-test/"
            },
            {
              "title": "4.3 Workers take groups, shards keep them whole",
              "href": "/4-runner/4-3-workers-and-parallel/"
            },
            {
              "title": "4.5 Options reset values, autos choose when to start",
              "href": "/4-runner/4-5-option-and-auto-fixtures/"
            }
          ]
        }
      ],
      "flow": [
        {
          "node": "validation",
          "step": "worker-fixture-account-cannot-de",
          "log": [
            "worker fixture \"account\" cannot depend on a test fixture \"page\" defined in <builtin>."
          ],
          "edge": "scope",
          "fail": true
        }
      ]
    }
  ],
  "definitions": {
    "request": {
      "term": "Fixture setup",
      "text": "A fixture has a setup phase before the test or hook that requires it runs."
    },
    "worker": {
      "term": "Worker scope",
      "text": "Worker fixtures are shared by tests in one worker and torn down when it stops."
    },
    "dependency": {
      "term": "Dependency order",
      "text": "A dependency is set up before its user and torn down after its user."
    },
    "use": {
      "term": "await use(value)",
      "text": "Setup runs before use(), teardown after it; use() must be called exactly once."
    },
    "body": {
      "term": "Test fixtures",
      "text": "Each test receives a new context, page and todoPage in this example."
    },
    "cleanup": {
      "term": "Teardown",
      "text": "Cleanup visits dependers before dependencies and reports the first error after trying the others. A teardown with no time left skips its code."
    },
    "validation": {
      "term": "Invalid dependency",
      "text": "A worker fixture cannot depend on a test fixture."
    },
    "restart": {
      "term": "New worker",
      "text": "Among test results, only an unexpected one stops the worker. Later tests use a new worker."
    },
    "unexpected": {
      "term": "Unexpected result",
      "text": "Skipped tests and expected failures do not count as unexpected results."
    }
  },
  "code": {
    "fixtures": {
      "title": "In your test · fixtures",
      "lines": [
        "export const test = base.extend<",
        "  { todoPage: TodoPage },",
        "  { account: Account }",
        ">({",
        "  account: [async ({}, use) => {",
        "    const acc = await createAccount();",
        "    await use(acc);   // tests run here",
        "    await deleteAccount(acc);",
        "  }, { scope: 'worker' }],",
        "",
        "  todoPage: async ({ page }, use) => {",
        "    const todo = new TodoPage(page);",
        "    await todo.goto();",
        "    await use(todo);  // the test runs",
        "    await todo.removeAll();",
        "  },",
        "});"
      ]
    },
    "reverse": {
      "title": "Inside Playwright · fixtureRunner.ts",
      "source": {
        "label": "fixtureRunner.ts:213-213",
        "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L213"
      },
      "lines": [
        "// Teardown fixtures in the reverse order.",
        "const allFixtures = Array.from(this.instanceForId.values()).reverse();"
      ]
    },
    "scope": {
      "title": "In your test · scope",
      "lines": [
        "// ✗ A worker fixture cannot use page",
        "account: [async ({ page }, use) => {",
        "  …",
        "}, { scope: 'worker' }],",
        "",
        "// ✓ Use a worker-scoped dependency",
        "account: [async ({ browser }, use) => {",
        "  …",
        "}, { scope: 'worker' }],"
      ]
    }
  },
  "conceptScenario": "intro",
  "concepts": [
    {
      "label": "Worker process · fixture lifecycle",
      "layer": "runner",
      "items": [
        {
          "definition": "request",
          "short": "Setup precedes the test or hook that requires the fixture.",
          "nodes": [
            "test"
          ],
          "step": {
            "step": "a-test-asks-for-fixtures-by-name"
          },
          "source": {
            "label": "test-fixtures-js.md:632-634",
            "url": "https://github.com/microsoft/playwright/blob/v1.65.0/docs/src/test-fixtures-js.md#L632-L634"
          }
        },
        {
          "definition": "worker",
          "short": "Worker shutdown tears down all fixtures.",
          "nodes": [
            "account",
            "browser"
          ],
          "step": {
            "step": "worker-fixtures-are-shared"
          },
          "source": {
            "label": "workerMain.ts:471-479",
            "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/workerMain.ts#L471-L479"
          }
        },
        {
          "definition": "dependency",
          "short": "Teardown reverses fixture creation order.",
          "nodes": [
            "browser",
            "context",
            "page",
            "todoPage"
          ],
          "step": {
            "step": "dependencies-are-set-up-first"
          },
          "source": {
            "label": "fixtureRunner.ts:213-215",
            "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L213-L215"
          }
        },
        {
          "definition": "use",
          "short": "Setup and teardown surround await use().",
          "nodes": [
            "todoPage"
          ],
          "step": {
            "step": "a-fixture-calls-use-exactly-once"
          },
          "source": {
            "label": "test-fixtures-js.md:632-634",
            "url": "https://github.com/microsoft/playwright/blob/v1.65.0/docs/src/test-fixtures-js.md#L632-L634"
          }
        },
        {
          "definition": "unexpected",
          "short": "Skipped tests and expected failures are not unexpected results.",
          "nodes": [
            "test"
          ],
          "step": {
            "step": "worker-fixtures-are-shared"
          },
          "source": {
            "label": "testInfo.ts:482-484",
            "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/testInfo.ts#L482-L484"
          }
        },
        {
          "definition": "cleanup",
          "short": "Other teardowns are tried before reporting the first error. A teardown with no time left skips its code.",
          "nodes": [
            "todoPage",
            "page",
            "context"
          ],
          "step": {
            "step": "teardown-runs-in-reverse"
          },
          "source": {
            "label": "fixtureRunner.ts:218-230",
            "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L218-L230"
          }
        },
        {
          "definition": "restart",
          "short": "Testing continues with the next test in a new worker.",
          "nodes": [
            "restart"
          ],
          "step": {
            "step": "worker-fixtures-are-shared"
          },
          "source": {
            "label": "test-retries-js.md:36",
            "url": "https://github.com/microsoft/playwright/blob/v1.65.0/docs/src/test-retries-js.md#L36"
          }
        }
      ]
    },
    {
      "label": "Fixture validation",
      "layer": "runner",
      "items": [
        {
          "definition": "validation",
          "short": "A worker fixture cannot depend on a test fixture.",
          "nodes": [
            "validation",
            "requestScope"
          ],
          "step": {
            "step": "invalid-scope-stops-before-the-t"
          },
          "source": {
            "label": "fixtures.ts:203-205",
            "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/common/fixtures.ts#L203-L205"
          }
        }
      ]
    }
  ],
  "callouts": {
    "1": [
      "test"
    ],
    "2": [
      "todoPage"
    ],
    "3": [
      "browser",
      "context",
      "page",
      "todoPage"
    ],
    "4": [
      "account",
      "browser"
    ],
    "5": [
      "validation",
      "requestScope"
    ]
  },
  "deeper": [
    {
      "title": "0.1 API calls leave from Node, page calls from the browser",
      "href": "/0-anatomy/0-1-anatomy-of-a-test/",
      "why": "Where fixture code runs."
    },
    {
      "title": "4.3 Workers take groups, shards keep them whole",
      "href": "/4-runner/4-3-workers-and-parallel/",
      "why": "Worker processes and test groups."
    },
    {
      "title": "4.5 Options reset values, autos choose when to start",
      "href": "/4-runner/4-5-option-and-auto-fixtures/",
      "why": "Automatic fixture setup."
    }
  ]
}
