Cheatography
https://cheatography.com
Starting a Test
✔ Update DA Portal status (in dev) |
✔ Create Branch ( master
➡ [testId]
) |
✔ Create test Folder:🧨 tests folder/[fiscalYear]/[testId]/files
|
✔ Create HTML Files (copy the offers' names) 🧨🎯🧙♂️ |
✔ Create readme 🧨🧙♂️ |
✔ Create Dynamite json file 🧨🧙♂️ |
✔ Publish your branch ( [testId]: scaffolding
) |
During a test
Make sure Dynamite is running |
Check Dynamite for errors at every save |
Keep your code organized, clean, and documented |
Use comprehensive variable and method names |
Give methods a Single Responsibility |
Turn repeated code into specialized functions |
Prefer CSS and HTML over JS |
Keep an eye on PR Recommendations |
|
|
PR Recommendations
Use the latest version of the template |
Code must pass JSHint validation |
Check for errors and warnings on the console |
Code cannot bailout |
Use waitFor
mehotds only when the element is always going to be present |
waitFor the closest parent or the element itself |
Use CSS vendor prefixes |
Use valid semantic HTML |
Test must remain as defined when viewport changes |
Remove console messages and commented out code |
Cache variables used more than once |
Check if performance is not compromised |
Only use InterceptAjax
on specific calls, not open ones |
Don't create custom functions for things that exist on the tntlib
|
jQuery ajax
or get
methods must have an error handling function |
$variables
that hold jQuery objects must start with $
|
Add the t[testId]_
prefix when naming cookies (e.g. t1234_
) |
|
|
Validate Recipes
Check the following items for all supported browsers (Chrome, Firefox, Edge, IE11) |
Styles must correspond to TED |
Logic must correspond to TED |
Check metrics |
Check experience on applicable viewports |
If the test doesn't run on all viewports, make sure to include the viewports array |
Check code documentation and readability |
Review your code, checking PR Recommendations |
Finishing a test
✔ Add metrics to readme
(e.g. 1234_myMetric
) |
✔ Check if there's no information missing in the readme
|
✔ Create a Merge Request |
✔ Paste metrics table into DA Portal (Setup Details > Custom Metrics) |
✔ Update DA Portal status (Pre-QA) |
✔ Submit a TED Review |
Labels
🎯 |
The info is in the Target Portal |
🧙♂️ |
There are TnT Snippets for this task |
🧨 |
Dynamite can automate this task |
|
Created By
Metadata
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets