From 7eb39952febe4b2250c0718d2ae42c432d16106e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 4 Nov 2025 06:30:30 +0000 Subject: [PATCH] Improve placeholder URLs with concrete examples Co-authored-by: stnguyen90 <1477010+stnguyen90@users.noreply.github.com> --- .github/agents/CHECKLIST.md | 2 +- .github/agents/code-change-agent.md | 7 ++++--- .github/agents/screenshot-guide.md | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/agents/CHECKLIST.md b/.github/agents/CHECKLIST.md index fb38dff6bd..8dca974e23 100644 --- a/.github/agents/CHECKLIST.md +++ b/.github/agents/CHECKLIST.md @@ -60,7 +60,7 @@ const { chromium } = require('playwright'); const browser = await chromium.launch(); const page = await browser.newPage(); await page.setViewportSize({ width: 1920, height: 1080 }); - await page.goto('http://localhost:PORT/YOUR-PATH'); + await page.goto('http://localhost:3000/dashboard'); // Replace with your actual URL await page.waitForLoadState('networkidle'); await page.screenshot({ path: '/tmp/pr-screenshots/screenshot.png', fullPage: true }); await browser.close(); diff --git a/.github/agents/code-change-agent.md b/.github/agents/code-change-agent.md index 293f56092d..7d7858dd0d 100644 --- a/.github/agents/code-change-agent.md +++ b/.github/agents/code-change-agent.md @@ -44,8 +44,8 @@ Take screenshots in the following scenarios: const browser = await chromium.launch(); const page = await browser.newPage(); - // Navigate to the changed UI - await page.goto('http://localhost:PORT/YOUR-PATH'); + // Navigate to the changed UI (replace with your actual URL) + await page.goto('http://localhost:3000/dashboard'); // Wait for the page to fully load await page.waitForLoadState('networkidle'); @@ -74,7 +74,8 @@ Take screenshots in the following scenarios: const { test, expect } = require('@playwright/test'); test('capture UI changes', async ({ page }) => { - await page.goto('http://localhost:PORT/YOUR-PATH'); + // Replace with your actual URL + await page.goto('http://localhost:3000/dashboard'); await expect(page).toHaveScreenshot('ui-state.png'); }); ``` diff --git a/.github/agents/screenshot-guide.md b/.github/agents/screenshot-guide.md index 0bc622395d..ac36979820 100644 --- a/.github/agents/screenshot-guide.md +++ b/.github/agents/screenshot-guide.md @@ -23,8 +23,8 @@ const { chromium } = require('playwright'); // Set viewport size await page.setViewportSize({ width: 1920, height: 1080 }); - // Navigate to your changed page - await page.goto('http://localhost:PORT/your-path'); + // Navigate to your changed page (replace with actual URL, e.g., http://localhost:3000/settings) + await page.goto('http://localhost:3000/dashboard'); await page.waitForLoadState('networkidle'); // Take screenshot