- scripts/ portados do teqo e adaptados (sem DB — SPA): worktree (next/plan/new/kill,
claim + branch <code>-<slug> + bun install), issue, agent:{claim,register,ready,
file-miss,status}, pr (cria PR + auto-merge sem gh), transitions de CI
- config por projeto em .forgejo/worktree.env (FORGEJO_REPOSITORY, WORKTREES_ROOT)
+ roteador global de terminal em ~/.config/shell/worktree.sh (escopo por git rev-parse)
- .opencode/commands e .agents/skills (plan-issue, work-issue, capture-review-debts,
worktree-next-issue, code-simplification) + AGENTS.md com o workflow
- CI Forgejo Actions unificado: checks (lint+build+e2e) em PR e main; deploy
gated; issue-done / plan-issue-ready / agent-pr-automerge workflows
- Playwright: config + 2 specs smoke (settings→chat, ws reconnect) — e2e só no CI
- package.json: aliases worktree/issue/agent:*/pr + gate + test:e2e
14 lines
772 B
TypeScript
14 lines
772 B
TypeScript
import { expect, test } from "@playwright/test";
|
|
|
|
test("tela de configuração salva e abre o chat", async ({ page }) => {
|
|
await page.goto("/");
|
|
|
|
await expect(page.getByText("Converse com o seu assistente de IA")).toBeVisible();
|
|
await page.getByPlaceholder("wss://app.exemplo.dev/ws/chat").fill("ws://127.0.0.1:1/ws/chat");
|
|
await page.getByPlaceholder("seu token de acesso").fill("token-de-teste");
|
|
await page.getByRole("button", { name: "Conectar" }).click();
|
|
|
|
await expect(page.getByPlaceholder("Escreva sua mensagem…")).toBeVisible();
|
|
await expect(page.getByRole("button", { name: "Configurações" })).toBeVisible();
|
|
await expect(page.getByText("Fale com a Iara — pergunte, peça para criar eventos, tarefas, notas e e-mails.")).toBeVisible();
|
|
});
|