Files
madbase/control-plane-ui/tests/e2e/scaling.spec.ts
Vlad Durnea cffdf8af86
Some checks failed
CI/CD Pipeline / unit-tests (push) Failing after 1m16s
CI/CD Pipeline / integration-tests (push) Failing after 2m32s
CI/CD Pipeline / lint (push) Successful in 5m22s
CI/CD Pipeline / e2e-tests (push) Has been skipped
CI/CD Pipeline / build (push) Has been skipped
wip:milestone 0 fixes
2026-03-15 12:35:42 +02:00

27 lines
915 B
TypeScript

import { test, expect } from '@playwright/test'
test.describe('Scaling E2E - Comprehensive', () => {
test.beforeEach(async ({ page }) => {
await page.goto('http://localhost:5173/scaling')
await page.waitForLoadState('networkidle')
})
test('displays scaling configuration UI', async ({ page }) => {
await expect(page.locator('text=/scaling/i')).toBeVisible()
// Check for form controls
await expect(page.locator('[role="combobox"], select').first()).toBeVisible()
// Check for sliders
await expect(page.locator('text=/nodes|workers|database/i')).toBeVisible()
})
test('has provider selection', async ({ page }) => {
await expect(page.locator('text=/provider|hetzner/i')).toBeVisible()
})
test('has create scaling plan button', async ({ page }) => {
await expect(page.locator('button:has-text("Create"), button:has-text("Plan")')).toBeVisible()
})
})