(context: WebSmokeContext)
| 42 | ); |
| 43 | |
| 44 | async function runWebSmoke(context: WebSmokeContext): Promise<void> { |
| 45 | let opened = false; |
| 46 | |
| 47 | try { |
| 48 | await runStep(context, 'set up managed web backend', ['web', 'setup', '--json']); |
| 49 | await runStep(context, 'verify managed web backend', ['web', 'doctor', '--json']); |
| 50 | await runStep(context, 'open local fixture', ['open', context.url, ...context.common]); |
| 51 | opened = true; |
| 52 | await assertInitialWebSurface(context); |
| 53 | await assertWebNetwork(context); |
| 54 | await assertReadAndVisibility(context); |
| 55 | await assertWebInteractions(context); |
| 56 | await assertWebScreenshot(context); |
| 57 | } finally { |
| 58 | await cleanupWebSmoke(context, opened); |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | async function createWebSmokeContext(): Promise<WebSmokeContext> { |
| 63 | const artifactDir = createArtifactDir(); |
no test coverage detected