Skip to content

Commit 121eca1

Browse files
update extract_press_releases (#409)
* target website changed * fix e2e test
1 parent 9c20de3 commit 121eca1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

evals/deterministic/tests/page/waitFor.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ test.describe("StagehandPage - waitFor", () => {
1717
expect(isVisibleBefore).toBe(false);
1818

1919
const clickableElement = page.locator(
20-
"div.mt-12:nth-child(3) > ul:nth-child(2) > li:nth-child(2) > div:nth-child(1)",
20+
"div.not-prose:nth-child(2) > a:nth-child(1) > div:nth-child(1)",
2121
);
2222
await clickableElement.click();
2323

@@ -153,7 +153,7 @@ test.describe("StagehandPage - waitFor", () => {
153153
await page.goto("https://docs.browserbase.com");
154154

155155
const quickstartLink = page.locator(
156-
"div.mt-12:nth-child(3) > ul:nth-child(2) > li:nth-child(2) > div:nth-child(1) > div:nth-child(1)",
156+
"div.not-prose:nth-child(2) > a:nth-child(1) > div:nth-child(1)",
157157
);
158158
await quickstartLink.click();
159159

evals/tasks/extract_press_releases.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ export const extract_press_releases: EvalFunction = async ({
5454
publish_date: "Dec 4, 2024",
5555
};
5656
const expectedLastItem: PressRelease = {
57-
title: "Brad Lander for Comptroller",
58-
publish_date: "Jun 8, 2021",
57+
title: "Fox Sued by New York City Pension Funds Over Election Falsehoods",
58+
publish_date: "Nov 12, 2023",
5959
};
6060

6161
if (items.length <= expectedLength) {

0 commit comments

Comments
 (0)