-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c096860
commit 2d10639
Showing
12 changed files
with
235 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
import { assertEquals } from "../../deps.ts"; | ||
import { build, connect } from "../../mod.ts"; | ||
const serverAdd = `http://host.docker.internal:1447`; | ||
|
||
const isRemote = Deno.args.includes("--remote"); | ||
|
||
Deno.test("manipulate_page_test.ts", async (t) => { | ||
await t.step({ | ||
name: "Remote tests (various to test different aspects)", | ||
ignore: !isRemote, | ||
fn: async (t) => { | ||
await t.step("Can open and close fine", async () => { | ||
const { browser, page } = await connect({ | ||
hostname: "localhost", | ||
debuggerPort: 9292, | ||
}); | ||
|
||
// todo do soemthing | ||
|
||
await browser.close(); | ||
}); | ||
|
||
await t.step("Can visit pages", async () => { | ||
const { browser, page } = await connect({ | ||
hostname: "localhost", | ||
debuggerPort: 9292, | ||
}); | ||
|
||
// todo do soemthing | ||
|
||
await browser.close(); | ||
}); | ||
|
||
await t.step("Can open and close fine", async () => { | ||
const { browser, page } = await connect({ | ||
hostname: "localhost", | ||
debuggerPort: 9292, | ||
}); | ||
|
||
// todo do soemthing | ||
|
||
await browser.close(); | ||
}); | ||
|
||
await t.step("Can visit pages", async () => { | ||
const { browser, page } = await connect({ | ||
hostname: "localhost", | ||
debuggerPort: 9292, | ||
}); | ||
|
||
// todo do soemthing | ||
|
||
await browser.close(); | ||
}); | ||
|
||
await t.step("Can evaluate", async () => { | ||
const { browser, page } = await connect({ | ||
hostname: "localhost", | ||
debuggerPort: 9292, | ||
}); | ||
|
||
// todo do soemthing | ||
|
||
await browser.close(); | ||
}); | ||
|
||
await t.step("Can click elements", async () => { | ||
const { browser, page } = await connect({ | ||
hostname: "localhost", | ||
debuggerPort: 9292, | ||
}); | ||
|
||
// todo do soemthing | ||
|
||
await browser.close(); | ||
}); | ||
}, | ||
}); | ||
}); |
Oops, something went wrong.