change code
繼 SnapShot Testing 此篇後 (文章連結位於下方)
snapShot Testing1.修改Home.js
修改 root/app/Home.js 內的 fontSize
2.執行App,看畫面
3.執行test
結果如下圖,可看見紅框內的錯誤
4.更新舊有的 .snap
若確定樣是要新的畫面,則蓋掉舊的 .snap檔,作法如下
結果如下圖,test成功 也 update 了 .snap,圖片下方紅框的部分,fontsize 已改為 14
參考
Last updated