Let discovery find a SuccessFactors board from a role, landing or search link
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9d915ab09a
commit
679d9ec938
2 files changed
+27
-7
No files matched your search
@@ -469,6 +469,22 @@ def test_discovery_finds_a_board_from_a_link_to_one_of_its_roles() -> None:
|
||||
assert [(h, s) for h, s, _ in boards_in(page)] == [("successfactors", "careers.vestas.com")]
|
||||
|
||||
|
||||
@pytest.mark.parametrize(("link", "slug"), [
|
||||
# The `careers_url` of the seed's companies that name a search or a landing page.
|
||||
("https://careers.vestas.com/search/?q=&locationsearch=", "careers.vestas.com"),
|
||||
("https://jobs.systematic.com/search/?createNewAlert=false&q=&locationsearch=DE+%2B+AT",
|
||||
"jobs.systematic.com"),
|
||||
("https://jobs.scania.com/go/Jobs-at-Scania/9096601/", "jobs.scania.com"),
|
||||
("https://careers.tryg.com/Tryg/go/All-open-positions/9394801/", "careers.tryg.com/Tryg"),
|
||||
("https://careers.ovhcloud.com/search/?createNewAlert=false&q=&locationsearch=&locale=en_US",
|
||||
"careers.ovhcloud.com"),
|
||||
])
|
||||
def test_discovery_finds_a_board_from_a_link_to_its_search_or_landing_page(
|
||||
link: str, slug: str) -> None:
|
||||
assert [(h, s) for h, s, _ in boards_in(f'<a href="{link}">Jobs</a>')] == [
|
||||
("successfactors", slug)]
|
||||
|
||||
|
||||
def test_discovery_takes_the_brand_segment_and_keeps_its_case() -> None:
|
||||
page = '<a href="https://jobs.teradyne.com/MiR/job/Basak-PLM-Data-Analyst/1397096400/">x</a>'
|
||||
assert [(h, s) for h, s, _ in boards_in(page)] == [("successfactors", "jobs.teradyne.com/MiR")]
|
||||
|
||||
Reference in new issue
Block a user