chore: test list tabs (#208)
This commit is contained in:
parent
7e4a964b0a
commit
4b261286bf
14 changed files with 66 additions and 58 deletions
|
|
@ -37,7 +37,6 @@ const wait: ToolFactory = captureSnapshot => ({
|
|||
await new Promise(f => setTimeout(f, Math.min(10000, validatedParams.time * 1000)));
|
||||
return {
|
||||
code: [`// Waited for ${validatedParams.time} seconds`],
|
||||
action: async () => ({}),
|
||||
captureSnapshot,
|
||||
waitForNetwork: false,
|
||||
};
|
||||
|
|
@ -59,7 +58,6 @@ const close: Tool = {
|
|||
await context.close();
|
||||
return {
|
||||
code: [`// Internal to close the page`],
|
||||
action: async () => ({}),
|
||||
captureSnapshot: false,
|
||||
waitForNetwork: false,
|
||||
};
|
||||
|
|
@ -91,7 +89,6 @@ const resize: ToolFactory = captureSnapshot => ({
|
|||
|
||||
const action = async () => {
|
||||
await tab.page.setViewportSize({ width: validatedParams.width, height: validatedParams.height });
|
||||
return {};
|
||||
};
|
||||
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue