Link a company on Settings › Sources to its company view by key, not a name search that also lists other companies whose names hold it and shows no gate note
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
1127d06f03
commit
8be59a7ee4
4 files changed
+27
-12
No files matched your search
@@ -110,3 +110,12 @@ def test_every_page_says_all_locations() -> None:
|
||||
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
|
||||
|
||||
|
||||
def test_a_company_on_settings_sources_links_to_its_company_view_by_key() -> None:
|
||||
"""By key, as the feed's own company links are: a name is a substring on
|
||||
the Roles page, which lists other companies whose names hold it and
|
||||
shows no company strip with its gate note."""
|
||||
script = (STATIC / "companies.js").read_text()
|
||||
assert "`/?company_keys=${encodeURIComponent(company.key)}`" in script
|
||||
assert "/?company=" not in script
|
||||
Reference in new issue
Block a user