Files
docs/apps/platform/e2e/dark-mode.spec.ts
zeekay a9e0257f07 feat: add platform docs with full API reference
Adds the Hanzo Platform documentation app with 47 MDX pages covering:
- Getting Started (overview, quickstart, concepts, CLI)
- Deployments (Kubernetes, Docker Swarm, Compose, Git, Registry, Domains)
- Clusters (fleet, registration, provisioning, node pools)
- Virtual Machines (AWS, DigitalOcean, Hetzner, volumes, terminal)
- Access Control (organizations, roles, permissions, invitations)
- Pricing (plans, compute, storage)
- API Reference (authentication, organizations, clusters, containers, VMs)

Also adds team app and K8s deployment manifest for platform-site.
2026-02-26 22:05:27 -08:00

42 lines
1.3 KiB
TypeScript

import { test, expect } from '@playwright/test'
test.describe('Dark Mode', () => {
test('defaults to dark theme', async ({ page }) => {
await page.goto('/')
const html = page.locator('html')
await expect(html).toHaveClass(/dark/)
})
test('dark theme has dark background', async ({ page }) => {
await page.goto('/')
const bgColor = await page.evaluate(() => {
return getComputedStyle(document.body).backgroundColor
})
// Should be a very dark color (near black)
expect(bgColor).toBeTruthy()
})
test('text is readable in dark mode', async ({ page }) => {
await page.goto('/')
const heroText = page.getByText('Deploy Anywhere.')
await expect(heroText).toBeVisible()
const color = await heroText.evaluate((el) => {
return getComputedStyle(el).color
})
// Should be a light color
expect(color).toBeTruthy()
})
test('feature cards have visible borders', async ({ page }) => {
await page.goto('/')
const card = page.getByText('Kubernetes Orchestration').locator('..')
await expect(card).toBeVisible()
})
test('pricing cards render in dark mode', async ({ page }) => {
await page.goto('/')
const nanoCard = page.getByText('Nano').first()
await expect(nanoCard).toBeVisible()
})
})