{
  "format": 3,
  "id": "4.5",
  "title": "Options, automatic fixture roots and report visibility",
  "layers": {
    "runner": {
      "label": "Runner"
    },
    "app": {
      "label": "App"
    },
    "fail": {
      "label": "Fail"
    }
  },
  "lanes": {
    "config": {
      "label": "CONFIGURATION · REGISTRATION",
      "layer": "runner",
      "y": 16,
      "h": 409.8,
      "x": 16,
      "w": 1670.5
    },
    "worker": {
      "label": "WORKER PROCESS · FIXTURE RUNNER",
      "layer": "runner",
      "y": 453.8,
      "h": 297.2,
      "x": 16,
      "w": 1670.5
    }
  },
  "frames": {},
  "nodes": {
    "default": {
      "label": "Option declaration",
      "layer": "app",
      "lane": "config",
      "box": [
        590.5,
        40,
        141,
        36
      ]
    },
    "config": {
      "label": "Config use",
      "layer": "app",
      "lane": "config",
      "box": [
        615.5,
        152.6,
        91,
        36
      ]
    },
    "describe": {
      "label": "Describe test.use",
      "layer": "app",
      "lane": "config",
      "box": [
        640.5,
        265.2,
        134,
        36
      ]
    },
    "reset": {
      "label": "undefined · reset",
      "layer": "app",
      "lane": "config",
      "box": [
        595.5,
        377.8,
        131,
        36
      ]
    },
    "reject": {
      "label": "Non-option config · rejected",
      "layer": "fail",
      "lane": "config",
      "fail": true,
      "box": [
        204.5,
        40,
        199,
        36
      ]
    },
    "function": {
      "label": "Fixture function",
      "layer": "runner",
      "lane": "worker",
      "box": [
        435.5,
        477.8,
        123,
        36
      ]
    },
    "value": {
      "label": "use(undefined)",
      "layer": "runner",
      "lane": "worker",
      "box": [
        437.5,
        590.4,
        119,
        36
      ]
    },
    "workerAuto": {
      "label": "Worker auto roots",
      "layer": "runner",
      "lane": "worker",
      "box": [
        34.5,
        477.8,
        138,
        36
      ]
    },
    "testAuto": {
      "label": "Test auto roots",
      "layer": "runner",
      "lane": "worker",
      "box": [
        44,
        590.4,
        119,
        36
      ]
    },
    "requested": {
      "label": "Requested fixtures",
      "layer": "runner",
      "lane": "worker",
      "box": [
        32,
        703,
        143,
        36
      ]
    },
    "hooks": {
      "label": "All-hook auto selection",
      "layer": "runner",
      "lane": "worker",
      "box": [
        763.5,
        477.8,
        167,
        36
      ]
    },
    "teardown": {
      "label": "Hook test scope ends",
      "layer": "runner",
      "lane": "worker",
      "box": [
        767.5,
        590.4,
        159,
        36
      ]
    },
    "title": {
      "label": "title · fixture step",
      "layer": "runner",
      "lane": "worker",
      "box": [
        962.5,
        477.8,
        133,
        36
      ]
    },
    "box": {
      "label": "box: true · grouped",
      "layer": "runner",
      "lane": "worker",
      "box": [
        1127.5,
        477.8,
        145,
        36
      ]
    },
    "self": {
      "label": "box: 'self' · no wrapper",
      "layer": "runner",
      "lane": "worker",
      "box": [
        1304.5,
        477.8,
        168,
        36
      ]
    },
    "override": {
      "label": "Override · box dropped",
      "layer": "runner",
      "lane": "worker",
      "box": [
        1504.5,
        477.8,
        170,
        36
      ]
    }
  },
  "edges": {
    "default_config": {
      "from": "default",
      "to": "config",
      "label": {
        "at": [
          673,
          118.5
        ],
        "text": "config override"
      },
      "path": "M661,76 L661,114.3 L661,152.6",
      "badge": [
        661,
        114.3
      ]
    },
    "config_describe": {
      "from": "config",
      "to": "describe",
      "label": {
        "at": [
          719.5,
          231.1
        ],
        "text": "test.use"
      },
      "path": "M675.866785079929,188.6 L707.5,226.9 L707.5,265.2",
      "badge": [
        703.8783167158492,
        222.51503722800663
      ]
    },
    "describe_reset": {
      "from": "describe",
      "to": "reset",
      "label": {
        "at": [
          719.5,
          343.7
        ],
        "text": "undefined resets"
      },
      "path": "M707.5,301.2 L707.5,339.5 L675.866785079929,377.8",
      "badge": [
        703.8783167158492,
        343.88496277199334
      ]
    },
    "reset_config": {
      "from": "reset",
      "to": "config",
      "path": "M595.5,379.7667391304348 L431,339.5 L431,283.2 L431,226.9 L615.5,181.73760869565217",
      "badge": [
        431,
        272.90476554167003
      ]
    },
    "function_value": {
      "from": "function",
      "to": "value",
      "label": {
        "at": [
          509.00000000000006,
          556.3000000000001
        ],
        "text": "supplies value"
      },
      "path": "M497,513.8 L497,552.1 L497,590.4",
      "badge": [
        497,
        552.1
      ]
    },
    "worker_test": {
      "from": "workerAuto",
      "to": "testAuto",
      "label": {
        "at": [
          115.5,
          556.3000000000001
        ],
        "text": "then"
      },
      "path": "M103.5,513.8 L103.5,552.1 L103.5,590.4",
      "badge": [
        103.5,
        552.1
      ]
    },
    "test_requested": {
      "from": "testAuto",
      "to": "requested",
      "label": {
        "at": [
          115.5,
          668.9000000000001
        ],
        "text": "then"
      },
      "path": "M103.5,626.4 L103.5,664.7 L103.5,703",
      "badge": [
        103.5,
        664.7
      ]
    },
    "hooks_teardown": {
      "from": "hooks",
      "to": "teardown",
      "label": {
        "at": [
          859,
          556.3000000000001
        ],
        "text": "hook ends"
      },
      "path": "M847,513.8 L847,552.1 L847,590.4",
      "badge": [
        847,
        552.1
      ]
    }
  },
  "scenarios": [
    {
      "id": "how",
      "label": "How fixture choices work",
      "display": {
        "counterLabel": false,
        "edges": "progressive",
        "edgeBadges": true,
        "nodeBadges": false,
        "log": "incremental"
      },
      "steps": [
        {
          "id": "the-config-can-set-option-fixtur",
          "title": "The config can set option fixtures",
          "text": "Project use supplies option overrides. A registered non-option in config use is a load error.",
          "show": [
            "default",
            "config",
            "reject"
          ],
          "current": [
            "config",
            "reject"
          ],
          "edges": [
            "default_config"
          ],
          "defs": [
            "option"
          ],
          "sources": [
            {
              "label": "poolBuilder.ts:77-81",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/common/poolBuilder.ts#L77-L81"
            },
            {
              "label": "fixtures.ts:93-104",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/common/fixtures.ts#L93-L104"
            },
            {
              "label": "fixtures.ts:107-112",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/common/fixtures.ts#L107-L112"
            }
          ],
          "deeper": [
            {
              "title": "4.2 Built on demand, torn down in reverse",
              "href": "/4-runner/4-2-custom-fixtures/"
            },
            {
              "title": "4.6 Each clock spends its own remaining budget",
              "href": "/4-runner/4-6-timeouts/"
            }
          ]
        },
        {
          "id": "undefined-resets-the-option-ance",
          "title": "undefined resets the option ancestry",
          "text": "Outer then inner describe overrides apply. undefined restores the config value, or the original declaration.",
          "show": [
            "default",
            "config",
            "describe",
            "reset"
          ],
          "current": [
            "reset"
          ],
          "edges": [
            "default_config",
            "config_describe",
            "describe_reset",
            "reset_config"
          ],
          "defs": [
            "reset"
          ],
          "code": "reset",
          "sources": [
            {
              "label": "poolBuilder.ts:57-64",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/common/poolBuilder.ts#L57-L64"
            },
            {
              "label": "fixtures.ts:167-174",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/common/fixtures.ts#L167-L174"
            },
            {
              "label": "fixtures.ts:93-104",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/common/fixtures.ts#L93-L104"
            }
          ],
          "deeper": [
            {
              "title": "4.2 Built on demand, torn down in reverse",
              "href": "/4-runner/4-2-custom-fixtures/"
            },
            {
              "title": "4.6 Each clock spends its own remaining budget",
              "href": "/4-runner/4-6-timeouts/"
            }
          ]
        },
        {
          "id": "a-fixture-function-supplies-real",
          "title": "A fixture function supplies real undefined",
          "text": "A function executes as a fixture; use stores the supplied value directly.",
          "show": [
            "function",
            "value"
          ],
          "current": [
            "value"
          ],
          "edges": [
            "function_value"
          ],
          "defs": [
            "value"
          ],
          "code": "unset",
          "sources": [
            {
              "label": "fixtureRunner.ts:74-79",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L74-L79"
            },
            {
              "label": "fixtureRunner.ts:110-118",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L110-L118"
            }
          ],
          "deeper": [
            {
              "title": "4.2 Built on demand, torn down in reverse",
              "href": "/4-runner/4-2-custom-fixtures/"
            },
            {
              "title": "4.6 Each clock spends its own remaining budget",
              "href": "/4-runner/4-6-timeouts/"
            }
          ]
        },
        {
          "id": "automatic-roots-start-before-req",
          "title": "Automatic roots start before requested fixtures",
          "text": "Worker automatic roots come before test automatic roots, then the function’s requested fixtures.",
          "show": [
            "workerAuto",
            "testAuto",
            "requested"
          ],
          "current": [
            "workerAuto",
            "testAuto",
            "requested"
          ],
          "edges": [
            "worker_test",
            "test_requested"
          ],
          "defs": [],
          "sources": [
            {
              "label": "fixtureRunner.ts:236-254",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L236-L254"
            }
          ],
          "deeper": [
            {
              "title": "4.2 Built on demand, torn down in reverse",
              "href": "/4-runner/4-2-custom-fixtures/"
            },
            {
              "title": "4.6 Each clock spends its own remaining budget",
              "href": "/4-runner/4-6-timeouts/"
            }
          ]
        },
        {
          "id": "dependencies-still-come-first",
          "title": "Dependencies still come first",
          "text": "Each selected root collects its dependencies first. Existing fixture instances are reused.",
          "show": [
            "workerAuto",
            "testAuto",
            "requested"
          ],
          "current": [
            "requested"
          ],
          "edges": [
            "worker_test",
            "test_requested"
          ],
          "defs": [
            "auto",
            "reuse"
          ],
          "sources": [
            {
              "label": "fixtureRunner.ts:236-254",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L236-L254"
            },
            {
              "label": "fixtureRunner.ts:203-210",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L203-L210"
            },
            {
              "label": "fixtureRunner.ts:282-292",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L282-L292"
            }
          ],
          "deeper": [
            {
              "title": "4.2 Built on demand, torn down in reverse",
              "href": "/4-runner/4-2-custom-fixtures/"
            },
            {
              "title": "4.6 Each clock spends its own remaining budget",
              "href": "/4-runner/4-6-timeouts/"
            }
          ]
        },
        {
          "id": "all-hooks-use-a-narrower-automat",
          "title": "All hooks use a narrower automatic selection",
          "text": "beforeAll and afterAll include worker autos and internal all-hooks-included autos. Requested test fixtures end with their hook; each-test hooks include test autos.",
          "show": [
            "hooks",
            "teardown",
            "workerAuto",
            "testAuto",
            "requested"
          ],
          "current": [
            "hooks",
            "teardown"
          ],
          "edges": [
            "hooks_teardown"
          ],
          "defs": [
            "hooks"
          ],
          "code": "hooks",
          "sources": [
            {
              "label": "fixtureRunner.ts:238-245",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L238-L245"
            },
            {
              "label": "workerMain.ts:561-581",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/workerMain.ts#L561-L581"
            },
            {
              "label": "workerMain.ts:618-621",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/workerMain.ts#L618-L621"
            },
            {
              "label": "fixtureRunner.ts:236-254",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L236-L254"
            },
            {
              "label": "index.ts:183-189",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/index.ts#L183-L189"
            }
          ],
          "deeper": [
            {
              "title": "4.2 Built on demand, torn down in reverse",
              "href": "/4-runner/4-2-custom-fixtures/"
            },
            {
              "title": "4.6 Each clock spends its own remaining budget",
              "href": "/4-runner/4-6-timeouts/"
            }
          ]
        },
        {
          "id": "boxing-changes-report-visibility",
          "title": "Boxing changes report visibility",
          "text": "title names the step and timeout description. box true hides fixture and children; box self hides only the wrapper. Setup still executes with the same timing.",
          "show": [
            "title",
            "box",
            "self"
          ],
          "current": [
            "title",
            "box",
            "self"
          ],
          "edges": [],
          "defs": [
            "boxing"
          ],
          "code": "box",
          "sources": [
            {
              "label": "fixtureRunner.ts:48-57",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L48-L57"
            },
            {
              "label": "fixtureRunner.ts:79-83",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L79-L83"
            },
            {
              "label": "testInfo.ts:309-315",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/testInfo.ts#L309-L315"
            },
            {
              "label": "testInfo.ts:377-392",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/testInfo.ts#L377-L392"
            }
          ],
          "deeper": [
            {
              "title": "4.2 Built on demand, torn down in reverse",
              "href": "/4-runner/4-2-custom-fixtures/"
            },
            {
              "title": "4.6 Each clock spends its own remaining budget",
              "href": "/4-runner/4-6-timeouts/"
            }
          ]
        },
        {
          "id": "a-plain-override-keeps-title-and",
          "title": "A plain override keeps title and drops box",
          "text": "Without options, the override keeps customTitle and deliberately does not inherit box.",
          "show": [
            "override",
            "title"
          ],
          "current": [
            "override"
          ],
          "edges": [],
          "defs": [
            "override"
          ],
          "sources": [
            {
              "label": "fixtures.ts:151-155",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/common/fixtures.ts#L151-L155"
            }
          ],
          "deeper": [
            {
              "title": "4.2 Built on demand, torn down in reverse",
              "href": "/4-runner/4-2-custom-fixtures/"
            },
            {
              "title": "4.6 Each clock spends its own remaining budget",
              "href": "/4-runner/4-6-timeouts/"
            }
          ]
        }
      ]
    },
    {
      "id": "restore",
      "label": "Restore option",
      "display": {
        "counterLabel": true,
        "edges": "progressive",
        "edgeBadges": false,
        "nodeBadges": true,
        "log": "incremental"
      },
      "whole": {
        "title": "undefined resets an option",
        "text": "Example baseURL values: default A, config B, outer describe C."
      },
      "steps": [
        {
          "id": "the-config-value-sits-right-belo",
          "title": "The config value sits right below the declared default.",
          "text": "The config value sits right below the declared default.",
          "show": [
            "config",
            "default"
          ],
          "current": [
            "config"
          ],
          "edges": [
            "default_config"
          ],
          "defs": [
            "example-0-0"
          ],
          "sources": [
            {
              "label": "poolBuilder.ts:77-81",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/common/poolBuilder.ts#L77-L81"
            },
            {
              "label": "fixtures.ts:93-104",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/common/fixtures.ts#L93-L104"
            }
          ],
          "deeper": [
            {
              "title": "4.2 Built on demand, torn down in reverse",
              "href": "/4-runner/4-2-custom-fixtures/"
            },
            {
              "title": "4.6 Each clock spends its own remaining budget",
              "href": "/4-runner/4-6-timeouts/"
            }
          ]
        },
        {
          "id": "outer-then-inner-test-use-overri",
          "title": "Outer, then inner test.use override it. The inner one sets undefined.",
          "text": "Outer, then inner test.use override it. The inner one sets undefined.",
          "show": [
            "describe",
            "reset",
            "config"
          ],
          "current": [
            "describe",
            "reset"
          ],
          "edges": [
            "config_describe",
            "describe_reset"
          ],
          "defs": [
            "example-0-1"
          ],
          "sources": [
            {
              "label": "poolBuilder.ts:57-64",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/common/poolBuilder.ts#L57-L64"
            },
            {
              "label": "fixtures.ts:167-174",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/common/fixtures.ts#L167-L174"
            },
            {
              "label": "fixtures.ts:93-104",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/common/fixtures.ts#L93-L104"
            }
          ],
          "deeper": [
            {
              "title": "4.2 Built on demand, torn down in reverse",
              "href": "/4-runner/4-2-custom-fixtures/"
            },
            {
              "title": "4.6 Each clock spends its own remaining budget",
              "href": "/4-runner/4-6-timeouts/"
            }
          ]
        },
        {
          "id": "to-get-a-real-undefined-supply-i",
          "title": "To get a real undefined, supply it from a fixture function.",
          "text": "To get a real undefined, supply it from a fixture function.",
          "show": [
            "function",
            "value"
          ],
          "current": [
            "function",
            "value"
          ],
          "edges": [
            "function_value"
          ],
          "defs": [
            "example-0-2"
          ],
          "code": "unset",
          "sources": [
            {
              "label": "fixtureRunner.ts:74-79",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L74-L79"
            },
            {
              "label": "fixtureRunner.ts:110-118",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L110-L118"
            }
          ],
          "deeper": [
            {
              "title": "4.2 Built on demand, torn down in reverse",
              "href": "/4-runner/4-2-custom-fixtures/"
            },
            {
              "title": "4.6 Each clock spends its own remaining budget",
              "href": "/4-runner/4-6-timeouts/"
            }
          ]
        },
        {
          "id": "undefined-goes-back-to-the-confi",
          "title": "undefined goes back to the config value B, or to A without one.",
          "text": "undefined goes back to the config value B, or to A without one.",
          "show": [
            "reset",
            "config",
            "default"
          ],
          "current": [
            "reset",
            "config",
            "default"
          ],
          "edges": [
            "reset_config"
          ],
          "defs": [
            "example-0-3"
          ],
          "code": "reset",
          "sources": [
            {
              "label": "fixtures.ts:167-174",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/common/fixtures.ts#L167-L174"
            }
          ],
          "deeper": [
            {
              "title": "4.2 Built on demand, torn down in reverse",
              "href": "/4-runner/4-2-custom-fixtures/"
            },
            {
              "title": "4.6 Each clock spends its own remaining budget",
              "href": "/4-runner/4-6-timeouts/"
            }
          ]
        }
      ],
      "flow": [
        {
          "node": "config",
          "step": "the-config-value-sits-right-belo",
          "log": []
        },
        {
          "node": "describe",
          "step": "outer-then-inner-test-use-overri",
          "log": []
        },
        {
          "node": "function",
          "step": "to-get-a-real-undefined-supply-i",
          "log": []
        },
        {
          "node": "value",
          "step": "to-get-a-real-undefined-supply-i",
          "log": [],
          "edge": "function_value"
        },
        {
          "node": "reset",
          "step": "undefined-goes-back-to-the-confi",
          "log": []
        }
      ]
    },
    {
      "id": "automatic",
      "label": "Automatic roots",
      "display": {
        "counterLabel": true,
        "edges": "progressive",
        "edgeBadges": false,
        "nodeBadges": true,
        "log": "incremental"
      },
      "whole": {
        "title": "Auto fixtures start before named ones",
        "text": "Each fixture still starts its dependencies first."
      },
      "steps": [
        {
          "id": "worker-auto-fixtures-start-first",
          "title": "Worker auto fixtures start first, then test auto fixtures, then named ones.",
          "text": "Worker auto fixtures start first, then test auto fixtures, then named ones.",
          "show": [
            "workerAuto",
            "testAuto",
            "requested"
          ],
          "current": [
            "workerAuto",
            "testAuto",
            "requested"
          ],
          "edges": [
            "worker_test",
            "test_requested"
          ],
          "defs": [
            "example-1-0"
          ],
          "sources": [
            {
              "label": "fixtureRunner.ts:236-254",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L236-L254"
            },
            {
              "label": "fixtureRunner.ts:203-210",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L203-L210"
            },
            {
              "label": "fixtureRunner.ts:282-292",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L282-L292"
            }
          ],
          "deeper": [
            {
              "title": "4.2 Built on demand, torn down in reverse",
              "href": "/4-runner/4-2-custom-fixtures/"
            },
            {
              "title": "4.6 Each clock spends its own remaining budget",
              "href": "/4-runner/4-6-timeouts/"
            }
          ]
        },
        {
          "id": "beforeall-and-afterall-start-wor",
          "title": "beforeAll and afterAll start worker autos, not test autos.",
          "text": "beforeAll and afterAll start worker autos, not test autos.",
          "show": [
            "hooks",
            "workerAuto"
          ],
          "current": [
            "hooks",
            "workerAuto"
          ],
          "edges": [],
          "defs": [
            "example-1-1",
            "hooks"
          ],
          "code": "hooks",
          "fix": "Ordinary test autos are excluded; internal all-hooks-included autos remain eligible. A hook can request test fixtures, which end with the hook.",
          "sources": [
            {
              "label": "fixtureRunner.ts:238-245",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L238-L245"
            },
            {
              "label": "workerMain.ts:561-581",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/workerMain.ts#L561-L581"
            },
            {
              "label": "index.ts:183-189",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/index.ts#L183-L189"
            },
            {
              "label": "fixtureRunner.ts:236-254",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L236-L254"
            },
            {
              "label": "workerMain.ts:561-581",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/workerMain.ts#L561-L581"
            }
          ],
          "deeper": [
            {
              "title": "4.2 Built on demand, torn down in reverse",
              "href": "/4-runner/4-2-custom-fixtures/"
            },
            {
              "title": "4.6 Each clock spends its own remaining budget",
              "href": "/4-runner/4-6-timeouts/"
            }
          ]
        },
        {
          "id": "test-fixtures-of-a-beforeall-end",
          "title": "Test fixtures of a beforeAll end with that hook, even after a failure.",
          "text": "Test fixtures of a beforeAll end with that hook, even after a failure.",
          "show": [
            "teardown",
            "hooks"
          ],
          "current": [
            "teardown"
          ],
          "edges": [
            "hooks_teardown"
          ],
          "defs": [
            "example-1-2"
          ],
          "sources": [
            {
              "label": "workerMain.ts:561-581",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/workerMain.ts#L561-L581"
            }
          ],
          "deeper": [
            {
              "title": "4.2 Built on demand, torn down in reverse",
              "href": "/4-runner/4-2-custom-fixtures/"
            },
            {
              "title": "4.6 Each clock spends its own remaining budget",
              "href": "/4-runner/4-6-timeouts/"
            }
          ]
        },
        {
          "id": "tests-and-beforeeach-start-test",
          "title": "Tests and beforeEach start test auto fixtures again.",
          "text": "Tests and beforeEach start test auto fixtures again.",
          "show": [
            "testAuto"
          ],
          "current": [
            "testAuto"
          ],
          "edges": [],
          "defs": [
            "example-1-3"
          ],
          "sources": [
            {
              "label": "workerMain.ts:618-621",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/workerMain.ts#L618-L621"
            },
            {
              "label": "fixtureRunner.ts:236-254",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L236-L254"
            }
          ],
          "deeper": [
            {
              "title": "4.2 Built on demand, torn down in reverse",
              "href": "/4-runner/4-2-custom-fixtures/"
            },
            {
              "title": "4.6 Each clock spends its own remaining budget",
              "href": "/4-runner/4-6-timeouts/"
            }
          ]
        }
      ],
      "flow": [
        {
          "node": "workerAuto",
          "step": "worker-auto-fixtures-start-first",
          "log": []
        },
        {
          "node": "testAuto",
          "step": "worker-auto-fixtures-start-first",
          "log": [],
          "edge": "worker_test"
        },
        {
          "node": "requested",
          "step": "worker-auto-fixtures-start-first",
          "log": [],
          "edge": "test_requested"
        },
        {
          "node": "hooks",
          "step": "beforeall-and-afterall-start-wor",
          "log": []
        },
        {
          "node": "teardown",
          "step": "test-fixtures-of-a-beforeall-end",
          "log": []
        },
        {
          "node": "testAuto",
          "step": "tests-and-beforeeach-start-test",
          "log": []
        }
      ]
    },
    {
      "id": "report",
      "label": "Report rows",
      "display": {
        "counterLabel": true,
        "edges": "progressive",
        "edgeBadges": false,
        "nodeBadges": true,
        "log": "incremental"
      },
      "whole": {
        "title": "box hides report steps, not work",
        "text": "Example: fixture account with title Login and a child step seed."
      },
      "steps": [
        {
          "id": "title-renames-the-report-step-an",
          "title": "title renames the report step and the timeout message.",
          "text": "title renames the report step and the timeout message.",
          "show": [
            "title"
          ],
          "current": [
            "title"
          ],
          "edges": [],
          "defs": [
            "example-2-0"
          ],
          "sources": [
            {
              "label": "fixtureRunner.ts:48-57",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L48-L57"
            },
            {
              "label": "fixtureRunner.ts:79-83",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L79-L83"
            }
          ],
          "deeper": [
            {
              "title": "4.2 Built on demand, torn down in reverse",
              "href": "/4-runner/4-2-custom-fixtures/"
            },
            {
              "title": "4.6 Each clock spends its own remaining budget",
              "href": "/4-runner/4-6-timeouts/"
            }
          ]
        },
        {
          "id": "box-true-hides-the-fixture-step",
          "title": "box: true hides the fixture step and its children in the report.",
          "text": "box: true hides the fixture step and its children in the report.",
          "show": [
            "box"
          ],
          "current": [
            "box"
          ],
          "edges": [],
          "defs": [
            "example-2-1",
            "boxing"
          ],
          "code": "box",
          "fix": "Boxing changes report visibility. The fixture executes and remains timed.",
          "sources": [
            {
              "label": "fixtureRunner.ts:48-57",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L48-L57"
            },
            {
              "label": "testInfo.ts:309-315",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/testInfo.ts#L309-L315"
            },
            {
              "label": "testInfo.ts:377-392",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/testInfo.ts#L377-L392"
            },
            {
              "label": "fixtureRunner.ts:79-83",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L79-L83"
            },
            {
              "label": "fixtureRunner.ts:48-57",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L48-L57"
            }
          ],
          "deeper": [
            {
              "title": "4.2 Built on demand, torn down in reverse",
              "href": "/4-runner/4-2-custom-fixtures/"
            },
            {
              "title": "4.6 Each clock spends its own remaining budget",
              "href": "/4-runner/4-6-timeouts/"
            }
          ]
        },
        {
          "id": "box-self-hides-only-the-fixture",
          "title": "box: 'self' hides only the fixture step. The child stays.",
          "text": "box: 'self' hides only the fixture step. The child stays.",
          "show": [
            "self"
          ],
          "current": [
            "self"
          ],
          "edges": [],
          "defs": [
            "example-2-2"
          ],
          "sources": [
            {
              "label": "fixtureRunner.ts:48-57",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L48-L57"
            },
            {
              "label": "fixtureRunner.ts:79-83",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L79-L83"
            },
            {
              "label": "testInfo.ts:309-315",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/testInfo.ts#L309-L315"
            },
            {
              "label": "testInfo.ts:377-392",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/testInfo.ts#L377-L392"
            }
          ],
          "deeper": [
            {
              "title": "4.2 Built on demand, torn down in reverse",
              "href": "/4-runner/4-2-custom-fixtures/"
            },
            {
              "title": "4.6 Each clock spends its own remaining budget",
              "href": "/4-runner/4-6-timeouts/"
            }
          ]
        },
        {
          "id": "an-override-without-options-keep",
          "title": "An override without options keeps the title but drops box.",
          "text": "An override without options keeps the title but drops box.",
          "show": [
            "override"
          ],
          "current": [
            "override"
          ],
          "edges": [],
          "defs": [
            "example-2-3"
          ],
          "sources": [
            {
              "label": "fixtures.ts:151-155",
              "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/common/fixtures.ts#L151-L155"
            }
          ],
          "deeper": [
            {
              "title": "4.2 Built on demand, torn down in reverse",
              "href": "/4-runner/4-2-custom-fixtures/"
            },
            {
              "title": "4.6 Each clock spends its own remaining budget",
              "href": "/4-runner/4-6-timeouts/"
            }
          ]
        }
      ],
      "flow": [
        {
          "node": "title",
          "step": "title-renames-the-report-step-an",
          "log": []
        },
        {
          "node": "box",
          "step": "box-true-hides-the-fixture-step",
          "log": []
        },
        {
          "node": "self",
          "step": "box-self-hides-only-the-fixture",
          "log": []
        },
        {
          "node": "override",
          "step": "an-override-without-options-keep",
          "log": []
        }
      ]
    }
  ],
  "definitions": {
    "option": {
      "term": "Option fixture",
      "text": "The config can set an option fixture. Registered non-options in config use are rejected."
    },
    "reset": {
      "term": "Option reset",
      "text": "An undefined option override walks its original override chain back to the config value or declaration."
    },
    "value": {
      "term": "Supplied value",
      "text": "A fixture function can supply a real undefined through use(undefined)."
    },
    "auto": {
      "term": "Automatic roots",
      "text": "Worker automatic roots precede test automatic roots, then requested fixtures. Dependencies still come first and existing instances are reused."
    },
    "hooks": {
      "term": "All hooks",
      "text": "beforeAll and afterAll select worker autos and the internal all-hooks-included mode, not ordinary test autos. Requested test fixtures end with that hook, even after failure."
    },
    "boxing": {
      "term": "Report visibility",
      "text": "title names the fixture step and timeout description. box true groups fixture and children away from report events; box self removes only the wrapper. Setup remains timed."
    },
    "override": {
      "term": "Plain override",
      "text": "An override without options inherits customTitle but deliberately drops box."
    },
    "reuse": {
      "term": "Fixture reuse",
      "text": "An existing fixture instance is returned before a new instance is constructed."
    },
    "example-0-0": {
      "term": "Example state",
      "text": "Declared default · baseURL = A · ↓ config use · B · ↓ outer test.use · C · ↓ inner test.use · undefined · Each level overrides the one above · A function can supply undefined"
    },
    "example-0-1": {
      "term": "Example state",
      "text": "Declared default · baseURL = A · ↓ config use · B · ↓ outer test.use · C · ↓ inner test.use · undefined · undefined means: go back up · A function can supply undefined"
    },
    "example-0-2": {
      "term": "Example state",
      "text": "Function override · baseURL · async ({}, use) => { ·   await use(undefined); · } · Supplied value · undefined · test.use undefined would give B"
    },
    "example-0-3": {
      "term": "Example state",
      "text": "Declared default · baseURL = A · ↓ config use · B ← back to here · ↓ outer test.use · C · ↓ inner test.use · undefined · No config value → back to A · A function can supply undefined"
    },
    "example-1-0": {
      "term": "Example state",
      "text": "Before a test or beforeEach · 1. worker auto fixtures · 2. test auto fixtures · 3. fixtures the test names · Fixtures already running are reused · all-hooks-included is internal"
    },
    "example-1-1": {
      "term": "Example state",
      "text": "Before beforeAll / afterAll · ✓ worker auto fixtures · ✓ all-hooks-included (tracing) · ✗ test auto fixtures · Then fixtures the hook names · all-hooks-included is internal"
    },
    "example-1-2": {
      "term": "Example state",
      "text": "After each beforeAll / afterAll · Worker fixtures stay · Its test fixtures tear down · Their scope ends with the hook · Test auto fixtures never started · all-hooks-included is internal"
    },
    "example-1-3": {
      "term": "Example state",
      "text": "Before the next test or beforeEach · 1. worker auto fixtures · 2. test auto fixtures start · Then fixtures the hook names · beforeAll test fixtures are gone · all-hooks-included is internal"
    },
    "example-2-0": {
      "term": "Example state",
      "text": "Runs: setup → use → teardown · title: 'Login' · same setup · Report steps · Fixture \"Login\" · ↳ seed · Both steps visible"
    },
    "example-2-1": {
      "term": "Example state",
      "text": "Runs: setup → use → teardown · box: true · same setup · Report steps: grouped away · Fixture \"Login\" · hidden · ↳ seed · hidden · Tracing can still receive steps"
    },
    "example-2-2": {
      "term": "Example state",
      "text": "Runs: setup → use → teardown · box: 'self' · same setup · Report steps · Fixture \"Login\" · hidden · ↳ seed · visible · Only the wrapper is removed"
    },
    "example-2-3": {
      "term": "Example state",
      "text": "Runs: setup → use → teardown · Override without options · same setup · Report steps · Fixture \"Login\" · visible · ↳ seed · visible · Title kept, box dropped"
    }
  },
  "code": {
    "unset": {
      "title": "In your test · unset baseURL",
      "lines": [
        "// ✗ Restores the configured value",
        "test.use({ baseURL: undefined });",
        "",
        "// ✓ Supplies an undefined value",
        "test.use({",
        "  baseURL: async ({}, use) => {",
        "    await use(undefined);",
        "  },",
        "});"
      ]
    },
    "reset": {
      "title": "Inside Playwright · fixtures.ts",
      "source": {
        "label": "fixtures.ts:167-174",
        "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/common/fixtures.ts#L167-L174"
      },
      "lines": [
        "if (fn === undefined && previous && isOptionFixture(previous)) {",
        "  let original = previous;",
        "  while (!original.optionOverride && original.super)",
        "    original = original.super;",
        "  fn = original.fn;",
        "}"
      ]
    },
    "hooks": {
      "title": "Inside Playwright · fixtureRunner.ts",
      "source": {
        "label": "fixtureRunner.ts:238-245",
        "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L238-L245"
      },
      "lines": [
        "if (autoFixtures === 'all-hooks-only')",
        "  shouldRun = registration.scope === 'worker' || registration.auto === 'all-hooks-included';",
        "else if (autoFixtures === 'worker')",
        "  shouldRun = registration.scope === 'worker';"
      ]
    },
    "box": {
      "title": "Inside Playwright · fixtureRunner.ts",
      "source": {
        "label": "fixtureRunner.ts:48-57",
        "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L48-L57"
      },
      "lines": [
        "if (this.registration.box === 'self')",
        "  this._stepInfo = undefined;",
        "else if (this.registration.box)",
        "  this._stepInfo.group = isUserFixture ? 'configuration' : 'internal';"
      ]
    }
  },
  "conceptScenario": "how",
  "concepts": [
    {
      "label": "Configuration · registration",
      "layer": "app",
      "items": [
        {
          "definition": "option",
          "short": "Config rejects a registered fixture that is not an option.",
          "nodes": [
            "reject"
          ],
          "step": {
            "step": "the-config-can-set-option-fixtur"
          },
          "source": {
            "label": "fixtures.ts:107-112",
            "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/common/fixtures.ts#L107-L112"
          }
        },
        {
          "definition": "reset",
          "short": "undefined restores the config value or original declaration.",
          "nodes": [
            "reset"
          ],
          "step": {
            "step": "undefined-resets-the-option-ance"
          },
          "source": {
            "label": "fixtures.ts:167-174",
            "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/common/fixtures.ts#L167-L174"
          }
        }
      ]
    },
    {
      "label": "Worker process",
      "layer": "runner",
      "items": [
        {
          "definition": "value",
          "short": "use stores the supplied value directly.",
          "nodes": [
            "value"
          ],
          "step": {
            "step": "a-fixture-function-supplies-real"
          },
          "source": {
            "label": "fixtureRunner.ts:110-118",
            "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L110-L118"
          }
        },
        {
          "definition": "auto",
          "short": "Automatic roots precede explicitly requested fixtures.",
          "nodes": [
            "workerAuto",
            "testAuto",
            "requested"
          ],
          "step": {
            "step": "dependencies-still-come-first"
          },
          "source": {
            "label": "fixtureRunner.ts:236-254",
            "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L236-L254"
          }
        },
        {
          "definition": "reuse",
          "short": "Existing fixture instances are returned without constructing replacements.",
          "nodes": [
            "requested"
          ],
          "step": {
            "step": "dependencies-still-come-first"
          },
          "source": {
            "label": "fixtureRunner.ts:282-292",
            "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L282-L292"
          }
        },
        {
          "definition": "hooks",
          "short": "Each all-hook has its own scope for test fixtures.",
          "nodes": [
            "hooks",
            "teardown"
          ],
          "step": {
            "step": "all-hooks-use-a-narrower-automat"
          },
          "source": {
            "label": "workerMain.ts:561-581",
            "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/workerMain.ts#L561-L581"
          }
        },
        {
          "definition": "boxing",
          "short": "box self removes the fixture wrapper step.",
          "nodes": [
            "self"
          ],
          "step": {
            "step": "boxing-changes-report-visibility"
          },
          "source": {
            "label": "fixtureRunner.ts:48-57",
            "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/worker/fixtureRunner.ts#L48-L57"
          }
        },
        {
          "definition": "override",
          "short": "A plain override deliberately does not inherit box.",
          "nodes": [
            "override"
          ],
          "step": {
            "step": "a-plain-override-keeps-title-and"
          },
          "source": {
            "label": "fixtures.ts:151-155",
            "url": "https://github.com/microsoft/playwright/blob/v1.65.0/packages/playwright/src/common/fixtures.ts#L151-L155"
          }
        }
      ]
    }
  ],
  "callouts": {
    "1": [
      "default",
      "config",
      "describe",
      "reset",
      "function",
      "value",
      "reject"
    ],
    "2": [
      "workerAuto",
      "testAuto",
      "requested"
    ],
    "3": [
      "hooks",
      "teardown"
    ],
    "4": [
      "title",
      "box",
      "self",
      "override"
    ]
  },
  "deeper": [
    {
      "title": "0.1 API calls leave from Node, page calls from the browser",
      "href": "/0-anatomy/0-1-anatomy-of-a-test/",
      "why": "Runner and worker process boundaries."
    },
    {
      "title": "4.1 Projects wait for successful dependencies",
      "href": "/4-runner/4-1-config-and-projects/",
      "why": "Project use configuration."
    },
    {
      "title": "4.2 Built on demand, torn down in reverse",
      "href": "/4-runner/4-2-custom-fixtures/",
      "why": "Dependencies, setup and fixture lifetime."
    },
    {
      "title": "4.6 Each clock spends its own remaining budget",
      "href": "/4-runner/4-6-timeouts/",
      "why": "Fixture timing and timeout descriptions."
    }
  ],
  "viewBox": [
    1702.5,
    767
  ],
  "measurement": {
    "name": "font-table",
    "labels": {
      "default_config": {
        "width": 94.81499999999998,
        "height": 12.6
      },
      "config_describe": {
        "width": 50.56799999999999,
        "height": 12.6
      },
      "describe_reset": {
        "width": 101.13599999999998,
        "height": 12.6
      },
      "function_value": {
        "width": 88.49399999999999,
        "height": 12.6
      },
      "worker_test": {
        "width": 25.284,
        "height": 12.6
      },
      "test_requested": {
        "width": 25.284,
        "height": 12.6
      },
      "hooks_teardown": {
        "width": 56.88899999999999,
        "height": 12.6
      }
    }
  }
}
