forked from retoor/devplacepy
feat: enforce hard test-tier requirement across all DevPlace workflow agents and feature-builder docs
Update the feature-builder agent prompt, test-maintainer agent, and all four workflow JS files (devii-tool, endpoint, feature, job-service) to codify the DevPlace test standard as a non-optional project requirement: one test file per endpoint, directory tree mirroring the URL/source path, split into three tiers (unit, api, e2e). Add explicit Test phases to devii-tool, endpoint, feature, and job-service workflows, and embed tier-specific test instructions (path mapping, fixture choice, coverage scope) directly in each workflow's meta description and TESTS constant.
This commit is contained in:
@@ -569,6 +569,50 @@ def test_feed_top_authors(alice):
|
||||
assert page.is_visible("text=Top Authors")
|
||||
|
||||
|
||||
def _resources_panel(page):
|
||||
return page.locator(".sidebar-card .sidebar-section").filter(
|
||||
has=page.locator(".sidebar-heading:has-text('Resources')")
|
||||
)
|
||||
|
||||
|
||||
def test_feed_resources_panel_visible(alice):
|
||||
page, user = alice
|
||||
page.goto(f"{BASE_URL}/feed", wait_until="domcontentloaded")
|
||||
panel = _resources_panel(page)
|
||||
panel.wait_for(state="visible")
|
||||
expect(panel.locator(".sidebar-heading")).to_have_text("Resources")
|
||||
expect(panel.locator("a.sidebar-link:has-text('Docs')")).to_be_visible()
|
||||
expect(panel.locator("a.sidebar-link:has-text('Issues')")).to_be_visible()
|
||||
expect(panel.locator("a.sidebar-link[data-devii-open]")).to_be_visible()
|
||||
|
||||
|
||||
def test_feed_resources_docs_link(alice):
|
||||
page, user = alice
|
||||
page.goto(f"{BASE_URL}/feed", wait_until="domcontentloaded")
|
||||
docs = _resources_panel(page).locator("a.sidebar-link:has-text('Docs')")
|
||||
assert docs.get_attribute("href") == "/docs"
|
||||
docs.click()
|
||||
page.wait_for_url(f"{BASE_URL}/docs", wait_until="domcontentloaded")
|
||||
|
||||
|
||||
def test_feed_resources_issues_link(alice):
|
||||
page, user = alice
|
||||
page.goto(f"{BASE_URL}/feed", wait_until="domcontentloaded")
|
||||
issues = _resources_panel(page).locator("a.sidebar-link:has-text('Issues')")
|
||||
assert issues.get_attribute("href") == "/issues"
|
||||
issues.click()
|
||||
page.wait_for_url(f"{BASE_URL}/issues", wait_until="domcontentloaded")
|
||||
|
||||
|
||||
def test_feed_resources_devii_opens_assistant(alice):
|
||||
page, user = alice
|
||||
page.goto(f"{BASE_URL}/feed", wait_until="domcontentloaded")
|
||||
devii = _resources_panel(page).locator("a.sidebar-link[data-devii-open]")
|
||||
expect(devii).to_be_visible()
|
||||
assert devii.get_attribute("href") == "/devii/"
|
||||
expect(devii).to_have_text(re.compile("Devii"))
|
||||
|
||||
|
||||
def test_feed_daily_topic(alice):
|
||||
page, user = alice
|
||||
page.goto(f"{BASE_URL}/feed", wait_until="domcontentloaded")
|
||||
|
||||
Reference in New Issue
Block a user