mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-09 21:50:30 +08:00
Improve external markdown link test
By using `page.route` we weren't changing the response of `https://example.com` since we where only changing it on the initial page. By using `context` we are able to change the response for any request to that site on all playwright pages.
This commit is contained in:
@@ -480,7 +480,7 @@ test.describe("browser error handling", () => {
|
||||
});
|
||||
|
||||
test("external markdown link", async ({ context, page }) => {
|
||||
await page.route("https://example.com/**", route => {
|
||||
await context.route("https://example.com/**", route => {
|
||||
return route.fulfill({ body: "hello", contentType: "text/plain" });
|
||||
});
|
||||
await page.goto(`${markdownUrl}/tree/main/footnotes.md`);
|
||||
|
||||
Reference in New Issue
Block a user