1
0
mirror of synced 2025-12-19 18:10:59 -05:00

journey landing page tests tweaks (#58097)

This commit is contained in:
Robert Sese
2025-10-21 17:28:36 -05:00
committed by GitHub
parent b0fc9bbca0
commit 0a38491c97
5 changed files with 12 additions and 12 deletions

View File

@@ -1,11 +1,11 @@
---
title: Carousel Test Category
title: Landing Page Carousel
intro: 'A test category page for testing the LandingCarousel component.'
versions:
fpt: '*'
ghes: '*'
ghec: '*'
layout: category-landing
layout: discovery-landing
recommended:
- /category-one/article-one
- /category-one/article-two

View File

@@ -41,6 +41,7 @@ children:
- /versioning
- /learning-about-github
- /empty-categories
- /test-journey
- /carousel
- /article-grid-discovery
- /article-grid-bespoke

View File

@@ -1,5 +1,5 @@
---
title: Test Journey Landing
title: Journey Landing
intro: 'Test page for journey tracks functionality'
layout: journey-landing
versions:

View File

@@ -26,7 +26,6 @@ children:
# as if the URL had been `/en/free-pro-team@latest/get-started/anything`.
- search
- get-started
- test-journey
- early-access
- pages
- code-security

View File

@@ -1008,7 +1008,7 @@ test('open search, Ask AI returns 400 error and shows general search results', a
test.describe('LandingCarousel component', () => {
test('displays carousel on test page', async ({ page }) => {
await page.goto('/get-started/carousel?feature=discovery-landing')
await page.goto('/get-started/carousel')
const carousel = page.locator('[data-testid="landing-carousel"]')
await expect(carousel).toBeVisible()
@@ -1026,7 +1026,7 @@ test.describe('LandingCarousel component', () => {
test('navigation works on desktop', async ({ page }) => {
await page.setViewportSize({ width: 1200, height: 800 })
await page.goto('/get-started/carousel?feature=discovery-landing')
await page.goto('/get-started/carousel')
const carousel = page.locator('[data-testid="landing-carousel"]')
await expect(carousel).toBeVisible()
@@ -1046,7 +1046,7 @@ test.describe('LandingCarousel component', () => {
test('responsive behavior on mobile', async ({ page }) => {
await page.setViewportSize({ width: 375, height: 667 })
await page.goto('/get-started/carousel?feature=discovery-landing')
await page.goto('/get-started/carousel')
const carousel = page.locator('[data-testid="landing-carousel"]')
await expect(carousel).toBeVisible()
@@ -1059,7 +1059,7 @@ test.describe('LandingCarousel component', () => {
test.describe('Journey Tracks', () => {
test('displays journey tracks on landing pages', async ({ page }) => {
await page.goto('/get-started?feature=journey-landing')
await page.goto('/get-started/test-journey')
const journeyTracks = page.locator('[data-testid="journey-tracks"]')
await expect(journeyTracks).toBeVisible()
@@ -1075,7 +1075,7 @@ test.describe('Journey Tracks', () => {
})
test('track expansion and collapse functionality', async ({ page }) => {
await page.goto('/get-started?feature=journey-landing')
await page.goto('/get-started/test-journey')
const firstTrack = page.locator('[data-testid="journey-track"]').first()
const expandButton = firstTrack.locator('summary')
@@ -1095,7 +1095,7 @@ test.describe('Journey Tracks', () => {
})
test('article navigation within tracks', async ({ page }) => {
await page.goto('/get-started?feature=journey-landing')
await page.goto('/get-started/test-journey')
const firstTrack = page.locator('[data-testid="journey-track"]').first()
const expandButton = firstTrack.locator('summary')
@@ -1112,7 +1112,7 @@ test.describe('Journey Tracks', () => {
})
test('preserves version in journey track links', async ({ page }) => {
await page.goto('/enterprise-cloud@latest/get-started?feature=journey-landing')
await page.goto('/enterprise-cloud@latest/get-started/test-journey')
const firstTrack = page.locator('[data-testid="journey-track"]').first()
const expandButton = firstTrack.locator('summary')
@@ -1127,7 +1127,7 @@ test.describe('Journey Tracks', () => {
})
test('handles liquid template rendering in track content', async ({ page }) => {
await page.goto('/get-started?feature=journey-landing')
await page.goto('/get-started/test-journey')
const tracks = page.locator('[data-testid="journey-track"]')