Skip to content

Commit dbb787c

Browse files
remove unnecessary URL validation in OrderHardwareTask
1 parent 8b9bb5b commit dbb787c

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/browsergym/workarena/tasks/service_catalog.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -472,16 +472,6 @@ def teardown(self) -> None:
472472
)
473473

474474
def validate(self, page: Page, chat_messages: list[str]) -> tuple[int, bool, str, dict]:
475-
right_url = check_url_suffix_match(page, expected_url=self.final_url, task=self)
476-
if not right_url:
477-
return (
478-
0,
479-
False,
480-
"",
481-
{
482-
"message": f"The page is not in the right URL to validate task {self.__class__.__name__}."
483-
},
484-
)
485475

486476
# Retrieve the request sysid from the URL
487477
current_url = parse.urlparse(parse.unquote(page.evaluate("() => window.location.href")))

0 commit comments

Comments
 (0)