mirror of
https://github.com/stablyai/orca.git
synced 2026-09-30 08:03:12 +00:00
17 lines
501 B
JavaScript
17 lines
501 B
JavaScript
export function createHostedIosNativeBaselineStep({
|
|
assertNoHostedMobileWebCdpTarget,
|
|
discoveryUrl,
|
|
evidenceStep
|
|
}) {
|
|
return async (label, run) => {
|
|
await evidenceStep(`${label} hosted target exclusion`, () =>
|
|
assertNoHostedMobileWebCdpTarget({ discoveryUrl })
|
|
)
|
|
const result = await evidenceStep(label, run)
|
|
await evidenceStep(`${label} hosted target exclusion after capture`, () =>
|
|
assertNoHostedMobileWebCdpTarget({ discoveryUrl })
|
|
)
|
|
return result
|
|
}
|
|
}
|