From ede34f5070d3ed148c0bb115950d9444b6e55044 Mon Sep 17 00:00:00 2001 From: Satya Deep Maheshwari Date: Sat, 16 Sep 2023 11:40:34 +0530 Subject: [PATCH] Fix block library path --- .github/visual-tests/collect-urls.mjs | 2 +- .github/visual-tests/run-locally.bash | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/visual-tests/collect-urls.mjs b/.github/visual-tests/collect-urls.mjs index a6758ee5..af83cc29 100644 --- a/.github/visual-tests/collect-urls.mjs +++ b/.github/visual-tests/collect-urls.mjs @@ -19,7 +19,7 @@ for (const index of process.env.TEST_PATHS_INDEXES.split(' ')) { console.log(`fetching from ${indexUrl}`); const response = await fetch(indexUrl) const json = await response.json(); - paths.push(...json.data.map((item) => { + paths.push(...json.blocks.data.map((item) => { const url = new URL(item.path); return url.pathname })); diff --git a/.github/visual-tests/run-locally.bash b/.github/visual-tests/run-locally.bash index daf192d3..575e2eb7 100644 --- a/.github/visual-tests/run-locally.bash +++ b/.github/visual-tests/run-locally.bash @@ -4,7 +4,7 @@ #export DOMAIN_BRANCH="update-from-boilerplate--vg-macktrucks-com--hlxsites.hlx.page" export DOMAIN_MAIN="main--sunstar--hlxsites.hlx.page" -export DOMAIN_BRANCH="index--sunstar--hlxsites.hlx.page" +export DOMAIN_BRANCH="visual-tests--sunstar--hlxsites.hlx.page" export TEST_PATHS="/"