(
label,
method,
requestPath,
body,
requestOptions = {},
verifyOptions = {},
)
| 1085 | } |
| 1086 | |
| 1087 | async function httpStep( |
| 1088 | label, |
| 1089 | method, |
| 1090 | requestPath, |
| 1091 | body, |
| 1092 | requestOptions = {}, |
| 1093 | verifyOptions = {}, |
| 1094 | ) { |
| 1095 | return measuredStep( |
| 1096 | label, |
| 1097 | async () => { |
| 1098 | logStep(`${label}`); |
| 1099 | const result = await retryHttpJson( |
| 1100 | method, |
| 1101 | requestPath, |
| 1102 | body, |
| 1103 | label, |
| 1104 | requestOptions, |
| 1105 | ); |
| 1106 | if (!verifyOptions.skip) { |
| 1107 | await verifyUi(label, verifyOptions); |
| 1108 | } |
| 1109 | return result; |
| 1110 | }, |
| 1111 | { phase: verifyOptions.phase ?? phaseTest }, |
| 1112 | ); |
| 1113 | } |
| 1114 | |
| 1115 | async function verifyUi(label, options = {}) { |
| 1116 | if (!serverProcess) { |
nothing calls this directly
no test coverage detected