(context: WebSmokeContext)
| 159 | } |
| 160 | |
| 161 | async function assertWebInteractions(context: WebSmokeContext): Promise<void> { |
| 162 | await runStep(context, 'click submit', ['click', 'label="Submit order"', ...context.common]); |
| 163 | await runStep(context, 'wait for click result', [ |
| 164 | 'wait', |
| 165 | 'text', |
| 166 | 'Submitted', |
| 167 | '5000', |
| 168 | ...context.common, |
| 169 | ]); |
| 170 | await runStep(context, 'fill email field', [ |
| 171 | 'fill', |
| 172 | 'label="Email"', |
| 173 | 'qa@example.test', |
| 174 | ...context.common, |
| 175 | ]); |
| 176 | await runStep(context, 'wait for fill result', [ |
| 177 | 'wait', |
| 178 | 'text', |
| 179 | 'Email qa@example.test', |
| 180 | '5000', |
| 181 | ...context.common, |
| 182 | ]); |
| 183 | } |
| 184 | |
| 185 | async function assertWebScreenshot(context: WebSmokeContext): Promise<void> { |
| 186 | await assertCommandData( |
no test coverage detected