WebdriverIOは、ES6 generators (yield)を利用してテストが書けるので、power-assertと組み合わせてテストを書いてみた。 準備 gulpで環境構築するサンプルを作ったのでgit clone... $ git clone git@github.com:yoshi6jp/webdriverio-power-assert-sample.git $ cd webdriverio-power-assert-sample/ $ npm install $ npm test > wdio@1.0.0 test webdriverio-power-assert-sample > gulp [07:00:45] Requiring external module coffee-script/register [07:00:46] Using gulpfile webdr
![WebdriverIO + power-assert でe2eテストをgeneratorで書いてみる - Qiita](https://cdn-ak-scissors.b.st-hatena.com/image/square/173059ec527c4cecb0c171827376cbf0d270f23c/height=288;version=1;width=512/https%3A%2F%2Fqiita-user-contents.imgix.net%2Fhttps%253A%252F%252Fcdn.qiita.com%252Fassets%252Fpublic%252Fadvent-calendar-ogp-background-7940cd1c8db80a7ec40711d90f43539e.jpg%3Fixlib%3Drb-4.0.0%26w%3D1200%26mark64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZ3PTk3MiZoPTM3OCZ0eHQ9V2ViZHJpdmVySU8lMjAlMkIlMjBwb3dlci1hc3NlcnQlMjAlRTMlODElQTdlMmUlRTMlODMlODYlRTMlODIlQjklRTMlODMlODglRTMlODIlOTJnZW5lcmF0b3IlRTMlODElQTclRTYlOUIlQjglRTMlODElODQlRTMlODElQTYlRTMlODElQkYlRTMlODIlOEImdHh0LWFsaWduPWxlZnQlMkN0b3AmdHh0LWNvbG9yPSUyMzNBM0MzQyZ0eHQtZm9udD1IaXJhZ2lubyUyMFNhbnMlMjBXNiZ0eHQtc2l6ZT01NiZzPTI1MTRmNzg5YWMxYTc4NmE0NzlmZjUxMjYyMzZlODU4%26mark-x%3D120%26mark-y%3D96%26blend64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZoPTc2Jnc9OTcyJnR4dD0lNDB5b3NoaTZqcCU0MGdpdGh1YiZ0eHQtY29sb3I9JTIzM0EzQzNDJnR4dC1mb250PUhpcmFnaW5vJTIwU2FucyUyMFc2JnR4dC1zaXplPTM2JnR4dC1hbGlnbj1sZWZ0JTJDdG9wJnM9NTc2ZWViMDc1ZDVjNGQ1YTFmNTkyNDA3NzRiYWZkODU%26blend-x%3D120%26blend-y%3D500%26blend-mode%3Dnormal%26s%3D09f5b13af6ef45ed69f90a13681a29e4)