testar-interface
Skill0 starsChanged 25 days agoMITView on GitHub
Prova que uma tela funciona como a pessoa vai usar - teste de ponta a ponta com Playwright e conferência no navegador real por script Playwright, em larguras e temas diferentes. Use em toda fatia que muda tela.
In this repository13 other files it gives its agents.
- cavemanSkill
- diagnosticarSkill
- entregarSkill
- escrever-postSkill
- especificarSkill
- passagemSkill
- planejarSkill
- revisar-codigoSkill
- revisar-designSkill
- tddSkill
- ticketsSkill
- verificarSkill
- workflowSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 28
No fim, encerre o script e o servidor que subiu.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Testar a interface
Teste de ponta a ponta
- Escreva o fluxo como a pessoa faz: clicar, digitar, usar atalho. Ache os elementos pelo papel e pelo nome acessível (
getByRole("button", { name: "..." })), não por classe CSS. - Cada teste cria os próprios dados (pela API, quando houver) para não depender da ordem dos outros.
- Espere pelo estado da tela (
toBeVisible,toHaveText), nunca por tempo fixo. - Se a interface tem mais de um idioma, fixe o idioma do navegador no teste.
- Rode só os testes da área tocada (
npx playwright test -g "<nome>"ou o arquivo). O e2e completo fica para a main mesclada, antes do push.
Conferência no navegador
Com o app rodando, use script Playwright headless (o do node_modules do projeto, em arquivo fora do repo): grava os prints em arquivo e imprime só as medidas, e confira o quadro abaixo. Chrome DevTools MCP só quando o script não resolve (rede, desempenho, depuração), com evaluate_script em vez de snapshot.
| O quê | Como |
| Larguras | 375 e 1440; 960 e 2560 só quando a fatia mexe em layout |
| Temas | claro e escuro, se o projeto tiver |
| Teclado | o fluxo inteiro sem mouse; foco sempre visível |
| Leitor de tela | nomes, papéis e títulos por script (getByRole, ariaSnapshot de um trecho) |
| Transbordo | document.documentElement.scrollWidth igual à largura da janela |
No fim, encerre o script e o servidor que subiu. Se usou o Chrome DevTools MCP, feche a aba e devolva o navegador como encontrou.
Evidência
Prints das telas conferidas, os comandos de teste e o resultado. Teste que falha às vezes vai para diagnosticar, não para repetição automática.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

