mirror of
https://github.com/hanzoai/store.git
synced 2026-10-30 14:54:46 +00:00
- Update globals.css with official OKLCH colors from @hanzo/ui theme - Replace local UI components with @hanzo/ui primitives (Button, Input, Card, Badge) - Add RainbowKit with Hanzo purple (#7c3aed) theme for Web3 wallet connection - Configure wagmi with custom chain definitions (Hanzo, Zoo, Lux networks) - Add Playwright e2e test suite (20 comprehensive test cases) - Fix React.Children.only error in GitHub link button with asChild prop - Change dev/start port from 3000 to 3200 to avoid conflicts Store now uses official Hanzo brand colors and supports wallet connections for enhanced user experience when installing MCP servers.
29 lines
861 B
TypeScript
29 lines
861 B
TypeScript
import { test, expect } from '@playwright/test';
|
|
|
|
test('simple page load test', async ({ page }) => {
|
|
// Navigate to the page
|
|
await page.goto('/');
|
|
|
|
// Wait for network to be idle
|
|
await page.waitForLoadState('networkidle');
|
|
|
|
// Take a screenshot for debugging
|
|
await page.screenshot({ path: 'test-results/debug-screenshot.png', fullPage: true });
|
|
|
|
// Get the actual title
|
|
const title = await page.title();
|
|
console.log('Page title:', title);
|
|
|
|
// Get the HTML content
|
|
const html = await page.content();
|
|
console.log('HTML length:', html.length);
|
|
console.log('HTML preview:', html.substring(0, 500));
|
|
|
|
// Check for errors in console
|
|
page.on('console', msg => console.log('Browser console:', msg.text()));
|
|
page.on('pageerror', error => console.log('Page error:', error));
|
|
|
|
// Simple assertion
|
|
expect(title).toContain('Hanzo');
|
|
});
|