network property
What this scenario's http requests reach, and where it states the answers it wants.
s.network.get('/api/messages', json: []);
s.network.image('/avatars/1.png', scenarioPlaceholderPng(width: 64));
s.network.any(throws: const SocketException('Network is unreachable'));
A stub always beats the mode, so a scenario under
ScenarioNetwork.live can still pin the one response it is about and let
the rest go out. s.network.requests is what was actually asked for, and
every one of them is on the step's Events pane besides.
One per scenario, shared by every replay of its splits — and reset at the top of each replay, so a branch states its own answers.
Implementation
final ScenarioNetworkPolicy network;