Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Introduction to Visual Regression Testing(JP)

Sponsored · SiteGround - Reliable hosting with speed, security, and support you can count on. →
Yosuke Kurami
November 25, 2017

Introduction to Visual Regression Testing(JP)

nodefest 17 向け資料(日本語版)

Yosuke Kurami

November 25, 2017

Transcript

31 slides
  1. 1. Ͳ͜·ͰDOMͷassert͢Δ͔ w type: Bͷͱ͖ʹɺԿΛνΣοΫ͠·͔͢ʁ
 nodeName, textContent, classList શ෦֬ೝ͢Δʁ <template>

    <class="greeting" div> <div v-if="type === 'A'"> Good evening, {{name}}. </div> <div class="type-b" v-else-if="type === 'B'"> Bon soir, {{name}}. </div> <div v-else>Other...</div> </div> </template>
  2. 2. ݟͨ໨΋ςετ͍ͨ͠ w Ϣʔβʔ͸Ϋϥε໊΍λά໊ʹڵຯ͕͋Δ༁͡Όͳ͍ .hoge { padding: 15px; color: #808080;

    border: 1px solid currentColor; } <div class="hoge"> ABCDEF </div> ݕূ͍ͨ͠ର৅ ͿͬͪΌ͚Ͳ͏Ͱ΋͍͍
  3. 3. ِཅੑΛճආ͢Δ ʮಉ͡ιʔείʔυ͸ಉ͡ը૾ʯΛอূ͢Δ5JQT w $44Ξχϝʔγϣϯͷ཈ࢭ w Ωϟϓνϟऔಘ͸ ͳΔ΂͘ ࠷ޙʹ࣮ߦ͢Δ
 *

    { transition: none !important; animation: none !important; } requestIdleCallback(() => screenshot(), { timeout: 30000 });
  4. (΄΅) JavaScriptͰͰ͖͍ͯΔ w $-* /PEFKT  w ը૾ࠩ෼ͷݕग़QOHKT QJYFMNBUDI w

    ը૾ͷอଘ"844%, w (JU)VC"QQ "84-BNCEB  w "QPMMP(SBQI2-$MJFOU w ൺֱϨϙʔτ 8FC#SPXTFS  w ϑϩϯτΤϯυ7VFKT w ࠩ෼৘ใϚʔΩϯά0QFO$7 8FC"TTFNCMZ

More Decks by Yosuke Kurami

Other Decks in Programming