This is an automated email from the ASF dual-hosted git repository. imbajin pushed a commit to branch feat/oink-core-platform in repository https://gitbox.apache.org/repos/asf/hugegraph-doc.git
commit 56e352f7b905a44259c67cc7e5584ab726f0ba4d Author: dark <[email protected]> AuthorDate: Fri Sep 4 21:19:58 2026 +0800 test(search): gate metadata ranking lane - skip fixed ranking assertions before PR-B metadata is present - retain native search coverage in standalone PR-A - run all 24 Top-3 cases automatically after integration --- tests/e2e/search-ranking.spec.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/e2e/search-ranking.spec.js b/tests/e2e/search-ranking.spec.js index ceb5cad56..06f79a4a6 100644 --- a/tests/e2e/search-ranking.spec.js +++ b/tests/e2e/search-ranking.spec.js @@ -34,8 +34,9 @@ const FALLBACK_CASES = { }; const metadataFixture = path.resolve(__dirname, "../../scripts/fixtures/community_search_queries.json"); +const metadataIntegrated = fs.existsSync(metadataFixture); const siteRoot = process.env.SITE_ROOT; -const rawCases = fs.existsSync(metadataFixture) +const rawCases = metadataIntegrated ? Object.groupBy( JSON.parse(fs.readFileSync(metadataFixture, "utf8")).map((entry) => [ entry.query, @@ -65,6 +66,7 @@ const cases = Object.fromEntries( for (const [locale, localeCases] of Object.entries(cases)) { test(`summary Lunr ranks fixed ${locale} entry queries`, async ({ page }) => { + test.skip(!metadataIntegrated, "PR-B search metadata fixture is not integrated"); for (const [query, expectedRef, expectedTitle] of localeCases) { await page.goto(locale === "cn" ? "/cn/docs/" : "/docs/"); await page.locator("[data-td-shell-search-open]").first().click();
