Name the viewing agent's fetch gate at the end of the list and in the empty state, where a phone sees it, and say in the reader when that gate rejects the role open
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
af1efd4fd6
commit
6b12d10bee
2 files changed
+64
-10
No files matched your search
@@ -119,3 +119,16 @@ def test_a_company_on_settings_sources_links_to_its_company_view_by_key() -> Non
|
||||
script = (STATIC / "companies.js").read_text()
|
||||
assert "`/?company_keys=${encodeURIComponent(company.key)}`" in script
|
||||
assert "/?company=" not in script
|
||||
|
||||
|
||||
def test_the_end_of_the_list_the_empty_state_and_the_reader_name_the_fetch_gate() -> None:
|
||||
"""A phone's rail, which holds the note, is shut, so the end of the list
|
||||
and the empty state say whose fetch gate the list keeps to, and the
|
||||
reader says when that gate rejects the role open (`gated_reason`)."""
|
||||
script = (STATIC / "roles.js").read_text()
|
||||
assert "`${listSaid(n)} — that is all of them.`" in script
|
||||
assert '${n === 1 ? "passes" : "pass"} ${gate}' in script
|
||||
assert "No open role ${gate ? `that passes ${gate} ` : \"\"}fits these filters." in script
|
||||
assert "No open role passes ${gate} yet." in script
|
||||
assert "Rejected by ${esc(gateOwner())} fetch gate:" in script
|
||||
assert "loaded && state.filter.agent !== null && r.gated_reason" in script
|
||||
Reference in new issue
Block a user