This directory contains AB test variants of main pages located in /_pages. When a user requests to "revert the AB pages back to control", follow these steps:
When reverting AB pages to control versions:
For each AB file in /ab-pages/, locate its corresponding control file in /_pages/ using the mapping table above.
Check if the AB variant and control file have identical content:
--- markers)topXbrands arrays and their orderbenefits, type, etc.isAB, hideMadeInUSARow, etc.If files differ, copy the entire content from the control file (/_pages/filename.njk) to the AB variant file (/ab-pages/filename.njk).
Important Notes:
s.njk file is a special AB variant of index.njktype or benefits# 1. Compare files
diff _pages/top10hybrid.njk _pages/ab-pages/top10hybrid.njk
# 2. If different, copy control to AB variant
cp _pages/top10hybrid.njk _pages/ab-pages/top10hybrid.njk
# 3. Verify the copy was successful
diff _pages/top10hybrid.njk _pages/ab-pages/top10hybrid.njk