feat: add lis step
This commit is contained in:
@@ -50,6 +50,13 @@ export const BrowserStepsProvider: React.FC<{ children: React.ReactNode }> = ({
|
|||||||
]);
|
]);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const addListStep = (listSelector: string, fields: { [key: string]: TextStep }) => {
|
||||||
|
setBrowserSteps(prevSteps => [
|
||||||
|
...prevSteps,
|
||||||
|
{ id: Date.now(), type: 'list', listSelector, fields }
|
||||||
|
]);
|
||||||
|
};
|
||||||
|
|
||||||
const addScreenshotStep = (fullPage: boolean) => {
|
const addScreenshotStep = (fullPage: boolean) => {
|
||||||
setBrowserSteps(prevSteps => [
|
setBrowserSteps(prevSteps => [
|
||||||
...prevSteps,
|
...prevSteps,
|
||||||
|
|||||||
Reference in New Issue
Block a user