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