mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-18 06:45:55 +08:00
feat(api/tests/scrape): verify that proxy works on Playwright
This commit is contained in:
parent
95f204aab7
commit
b744f40be9
@ -41,6 +41,15 @@ describe("Scrape tests", () => {
|
|||||||
|
|
||||||
expect(response.markdown?.trim()).toBe(process.env.PROXY_SERVER!.split("://").slice(-1)[0].split(":")[0]);
|
expect(response.markdown?.trim()).toBe(process.env.PROXY_SERVER!.split("://").slice(-1)[0].split(":")[0]);
|
||||||
}, 30000);
|
}, 30000);
|
||||||
|
|
||||||
|
it.concurrent("self-hosted proxy works on playwright", async () => {
|
||||||
|
const response = await scrape({
|
||||||
|
url: "https://icanhazip.com",
|
||||||
|
waitFor: 100,
|
||||||
|
});
|
||||||
|
|
||||||
|
expect(response.markdown?.trim()).toBe(process.env.PROXY_SERVER!.split("://").slice(-1)[0].split(":")[0]);
|
||||||
|
}, 30000);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!process.env.TEST_SUITE_SELF_HOSTED || process.env.PLAYWRIGHT_MICROSERVICE_URL) {
|
if (!process.env.TEST_SUITE_SELF_HOSTED || process.env.PLAYWRIGHT_MICROSERVICE_URL) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user