Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 6d82c66

Browse files
committed
fix tests
1 parent 5a8cc05 commit 6d82c66

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/test.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
uses: actions/upload-artifact@v4
5151
if: failure()
5252
with:
53-
name: cypress-screenshots
53+
name: cypress-screenshots-broken-links
5454
path: cypress/screenshots
5555

5656
test-a11y:
@@ -75,7 +75,7 @@ jobs:
7575
uses: actions/upload-artifact@v4
7676
if: failure()
7777
with:
78-
name: cypress-screenshots
78+
name: cypress-screenshots-a11y
7979
path: cypress/screenshots
8080

8181
test-seo:
@@ -100,5 +100,5 @@ jobs:
100100
uses: actions/upload-artifact@v4
101101
if: failure()
102102
with:
103-
name: cypress-screenshots
103+
name: cypress-screenshots-seo
104104
path: cypress/screenshots

scripts/cypress-fixtures.mjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,15 @@ const PROD_PAGES_PATH = 'cypress/fixtures/prod_pages.json'
1212

1313
async function run() {
1414
try {
15+
const staticPages = basePages.map((page) => `/docs${page}`)
16+
1517
const docPages = allDocs.map((doc) => {
1618
return doc.slug === '/' ? '/docs' : `/docs/${doc.slug}`
1719
})
1820

19-
const paths = [...basePages, ...docPages].sort((a, b) => a.localeCompare(b))
21+
const paths = [...staticPages, ...docPages].sort((a, b) =>
22+
a.localeCompare(b),
23+
)
2024

2125
console.log(`${paths.length} paths found. Generating fixture`)
2226

0 commit comments

Comments
 (0)