mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-27 09:19:53 +00:00
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.
42 lines
1.3 KiB
TypeScript
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()
|
|
})
|
|
})
|