Improve placeholder URLs with concrete examples

Co-authored-by: stnguyen90 <1477010+stnguyen90@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-11-04 06:30:30 +00:00
co-authored by stnguyen90
parent 3c662a5bc3
commit 7eb39952fe
3 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -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();
+4 -3
View File
@@ -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');
});
```
+2 -2
View File
@@ -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