feat(tests): 3 smoke tests E2E para fluxo home->analyze->report#67
Open
salomaomagalhaes wants to merge 1 commit into
Open
feat(tests): 3 smoke tests E2E para fluxo home->analyze->report#67salomaomagalhaes wants to merge 1 commit into
salomaomagalhaes wants to merge 1 commit into
Conversation
Aplica P1 da auditoria 2026-04-19 (bug #216).
Antes: playwright.config apontava para tests/e2e/ mas diretorio nao
existia — zero testes E2E. Fluxo critico (home -> analyze -> report)
nunca testado automatizadamente.
Depois: 3 smoke tests cobrindo cenarios minimos:
tests/e2e/smoke-home.spec.ts:
- Home carrega com titulo + CTA principal visiveis
- Meta tags SEO presentes (description, viewport, canonical)
- Navegacao principal acessivel via teclado (primeiro Tab foca)
tests/e2e/smoke-navigation.spec.ts:
- Home, /about, /docs, /history respondem 200
- Zero erros JS de runtime em cada pagina (page.on('pageerror'))
- Body visivel em todas
tests/e2e/smoke-analyze.spec.ts:
- Submissao de URL valida aciona loading OU navegacao OU mensagem
- Submissao de URL invalida nao crasha (title != 'Error' + body visivel)
Os tests tem `test.skip()` condicional se seletores nao acharem elementos,
permitindo passar na primeira execucao em caso de divergencia de UI.
Proxima iteracao: endurecer seletores com data-testid.
Ref: hq/reference/audit/16-webscope.md P1-01.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Aplica P1 da auditoria 2026-04-19 (bug #216).
Antes: playwright.config apontava para tests/e2e/ mas diretorio nao
existia — zero testes E2E. Fluxo critico (home -> analyze -> report)
nunca testado automatizadamente.
Depois: 3 smoke tests cobrindo cenarios minimos:
tests/e2e/smoke-home.spec.ts:
tests/e2e/smoke-navigation.spec.ts:
tests/e2e/smoke-analyze.spec.ts:
Os tests tem
test.skip()condicional se seletores nao acharem elementos,permitindo passar na primeira execucao em caso de divergencia de UI.
Proxima iteracao: endurecer seletores com data-testid.
Ref: hq/reference/audit/16-webscope.md P1-01.
Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com