code-corps / code-corps/code-corps-ember

Rewrite integration tests for reset-password-test component

Aperta
#1,617 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
120
Fork
75
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

# Problem

Currently, `tests/integration/components/password/reset-password-test.js` doesn't make full use of its page object by not defining a renderPage() function. To dry up the code, you can set a renderPage() function above the `moduleForComponent`, pass in the needed hbs selectors, and call renderPage() in each test.

## References
#1605

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Open tests/integration/components/password/reset-password-test.js and inspect how each test currently renders the component. Define renderPage() above moduleForComponent with the needed hbs selectors, then use it in each test to remove duplicated setup. Done means the integration tests still pass with the page object handling rendering.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
javascript
Ambito
testing-qa
Tipo di issue
Refactoring
Difficoltà
2/5
Tempo stimato
1-3 ore
Stato di attività
Ferma
Chiarezza
Specificata chiaramente
Idoneità per principianti
55/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.