Skip to content

Commit ba9c97f

Browse files
Copilotpelikhan
andauthored
[WIP] Fix broken getting started button link in Astro config (#3904)
* Initial plan * Identify broken Getting Started button link issue Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> * Fix Getting Started button link to include /gh-aw/ base path Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
1 parent d116152 commit ba9c97f

3 files changed

Lines changed: 35 additions & 2 deletions

File tree

.github/workflows/daily-doc-updater.lock.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/src/content/docs/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ hero:
1212
tagline: <strong>Explore AI-powered repository automation.</strong><br>Write natural language workflows that understand context, make decisions,and take meaningful actions across your repositories.
1313
actions:
1414
- text: Getting Started
15-
link: /setup/quick-start/
15+
link: /gh-aw/setup/quick-start/
1616
icon: right-arrow
1717
variant: primary
1818
---

docs/tests/homepage-links.spec.ts

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import { test, expect } from '@playwright/test';
2+
3+
test.describe('Homepage Links', () => {
4+
test.beforeEach(async ({ page }) => {
5+
await page.goto('/gh-aw/');
6+
await page.waitForLoadState('networkidle');
7+
});
8+
9+
test('should have correct Getting Started button link', async ({ page }) => {
10+
// Locate the Getting Started button
11+
const gettingStartedButton = page.locator('a.primary:has-text("Getting Started")');
12+
13+
// Verify button exists and is visible
14+
await expect(gettingStartedButton).toBeVisible();
15+
16+
// Verify the href includes the base path
17+
const href = await gettingStartedButton.getAttribute('href');
18+
expect(href).toBe('/gh-aw/setup/quick-start/');
19+
});
20+
21+
test('should navigate to quick start page when Getting Started is clicked', async ({ page }) => {
22+
// Click the Getting Started button
23+
const gettingStartedButton = page.locator('a.primary:has-text("Getting Started")');
24+
await gettingStartedButton.click();
25+
26+
// Wait for navigation
27+
await page.waitForLoadState('networkidle');
28+
29+
// Verify we're on the quick start page
30+
await expect(page).toHaveURL(/\/gh-aw\/setup\/quick-start\//);
31+
await expect(page).toHaveTitle(/Quick Start/);
32+
});
33+
});

0 commit comments

Comments
 (0)