Show Menu
Cheatography

Test Development Cycle Cheat Sheet by

Starting a Test

βœ” Update DA Portal status (in dev)
βœ” Create Branch (
master
➑
[testId]
)
βœ” Create test Folder:🧨
tests folder/[fisc­alY­ear­]/[­tes­tId]/files
βœ” Create HTML Files (copy the offers' names) πŸ§¨πŸŽ―πŸ§™β€β™‚οΈ
βœ” Create readme πŸ§¨πŸ§™β€β™‚οΈ
βœ” Create Dynamite json file πŸ§¨πŸ§™β€β™‚οΈ
βœ” Publish your branch (
[testId]: scaffo­lding
)

During a test

Make sure Dynamite is running
Check Dynamite for errors at every save
Keep your code organized, clean, and documented
Use compre­hensive variable and method names
Give methods a Single Respon­sib­ility
Turn repeated code into specia­lized functions
Prefer CSS and HTML over JS
Keep an eye on PR Recomm­end­ations
 

PR Recomm­end­ations

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 perfor­mance is not compro­mised
Only use
Interc­eptAjax
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 docume­ntation and readab­ility
Review your code, checking PR Recomm­end­ations

Finishing a test

βœ” Add metrics to
readme
(e.g.
1234_m­yMetric
)
βœ” Check if there's no inform­ation 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
 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          Network lesson Cheat Sheet
          4D - Developer Cheat Sheet