import { test, expect, type Page } from '@playwright/test'; // ── Schedules (scheduled task CRUD) E2E ─────────────────────────────────────── // // REQUIRES `npm run test:e2e` + a running server (ui/playwright.config.ts boots // the real orchestrator with auth OFF → synthetic 'local' user). This does NOT // run in the sandbox — there is no live server here. // // The Schedules page (page=schedules) is NOT auth-gated (NAV_ITEMS: schedules // requiresAuth:false). The cronForm lib is partially unit-covered; this proves // the create/list/edit UI wiring that has no e2e. // // Selector grounding (read from SchedulesPage.tsx + i18n locales en/ja): // - List: a "New schedule" / "新しいスケジュール" button (list.new) opens the editor. // - Editor: a Title input (placeholder "Weekly news roundup" / "週次ニュースまとめ"), // a Prompt textarea (placeholder "Enter the prompt to run" / "実行するプロンプトを入力"), // and a submit button "Create"/"作成" (gated on a non-empty prompt body). // - Each schedule renders as a list