| 1 | import { WebView } from "vscode-extension-tester"; |
| 2 | |
| 3 | import { SelectorUtils } from "./SelectorUtils"; |
| 4 | |
| 5 | export class ApplySelectors { |
| 6 | static getCodeblockToolbarAction( |
| 7 | view: WebView, |
| 8 | action: "apply" | "accept" | "reject" | "create", |
| 9 | ) { |
| 10 | return SelectorUtils.getElementByDataTestId( |
| 11 | view, |
| 12 | `codeblock-toolbar-${action}`, |
| 13 | ); |
| 14 | } |
| 15 | } |