mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Improve placeholder URLs with concrete examples
Co-authored-by: stnguyen90 <1477010+stnguyen90@users.noreply.github.com>
This commit is contained in:
co-authored by
stnguyen90
parent
3c662a5bc3
commit
7eb39952fe
@@ -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();
|
||||
|
||||
@@ -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');
|
||||
});
|
||||
```
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user