Name the feed orders What I'm looking for, What fits me and Newest, drop Show hidden companies and show the judge's numbers of 10
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b6e27fcb26
commit
463e53ac32
4 files changed
+102
-82
No files matched your search
@@ -81,3 +81,32 @@ def test_a_saved_filter_round_trips_the_query_roles_js_writes(
|
||||
# the page treats as done.
|
||||
assert client.delete(f"/api/filters/{made.json()['id']}").status_code == 404
|
||||
assert client.get(f"/api/agents/{agent.id}/filters").json() == []
|
||||
|
||||
|
||||
def test_the_feed_orders_carry_the_adrs_names() -> None:
|
||||
script = (STATIC / "roles.js").read_text()
|
||||
assert "What I\\u2019m looking for" in script and '"What fits me"' in script
|
||||
assert 'time: "Newest"' in script
|
||||
assert "Agent match" not in script
|
||||
|
||||
|
||||
def test_the_rail_has_no_show_hidden_companies_and_the_feed_never_asks_for_them(
|
||||
client: TestClient) -> None:
|
||||
page = client.get("/").text
|
||||
assert "f-show-muted" not in page and "Show hidden companies" not in page
|
||||
script = (STATIC / "roles.js").read_text()
|
||||
assert "show_muted" not in script and "showMuted" not in script
|
||||
|
||||
|
||||
def test_the_reader_shows_the_judges_numbers_of_ten() -> None:
|
||||
script = (STATIC / "roles.js").read_text()
|
||||
assert "skills ${j.skills}/10" in script and "experience ${j.experience}/10" in script
|
||||
assert "career ${j.career}/10" in script
|
||||
assert "of 100" in script # the CV match itself stays on 0 to 100
|
||||
|
||||
|
||||
def test_every_page_says_all_locations() -> None:
|
||||
for path in STATIC.glob("*.js"):
|
||||
assert "All countries" not in path.read_text(), path.name
|
||||
for path in (STATIC.parent / "templates").rglob("*.html"):
|
||||
assert "All countries" not in path.read_text(), path.name
|
||||
Reference in new issue
Block a user