(name: string, options?: MarkOptions)
| 203 | } |
| 204 | |
| 205 | public mark(name: string, options?: MarkOptions): Promise<void> { |
| 206 | const currentTest = getWorkerState().current |
| 207 | if (!currentTest || !getBrowserState().activeTraceTaskIds.has(currentTest.id)) { |
| 208 | return Promise.resolve() |
| 209 | } |
| 210 | return ensureAwaited(error => getBrowserState().commands.triggerCommand<void>( |
| 211 | '__vitest_markTrace', |
| 212 | [{ |
| 213 | name, |
| 214 | selector: this.selector, |
| 215 | stack: options?.stack ?? error?.stack, |
| 216 | }], |
| 217 | error, |
| 218 | )) |
| 219 | } |
| 220 | |
| 221 | protected abstract locator(selector: string): Locator |
| 222 | protected abstract elementLocator(element: Element): Locator |
nothing calls this directly
no test coverage detected