Coder Social home page Coder Social logo

Comments (7)

azu avatar azu commented on August 31, 2024

マルチバイト文字をtypeさせるみたいな事する時まだ問題あるけど、issue立てたら直すとのことなので、その辺直れば挙動的な問題はあんまりない気がする。

いくつかpull requestとドキュメント改善の提案とかも送ったので、利用者が増えればProtractor程にはならないけど、ある程度導入しやすくなる気がする

from efcl.github.io.

azu avatar azu commented on August 31, 2024

ProtractorはJasmineへの依存が強い。

assertの仕組みがexpectに乗っかるので、ここへの依存を切り離すには結局それようの何が必要になる感じ

from efcl.github.io.

azu avatar azu commented on August 31, 2024

同期的であるので、PageObjectパターンみたいのはどうやって適応すればいいのかが逆に難しいのは欠点?なのかも?
操作を抽象化したオブジェクトはまだないと思うので、browserというcontextをちゃんと渡さないとできない気がする。bindとかうまく使えば自然になるのかな。
DOM API的なラッパがあるとtestium自体への依存も薄くなっていいのかもしれない。

from efcl.github.io.

azu avatar azu commented on August 31, 2024

同期的なAPIの問題がまだ良くわからない。
あるのかわからないけど、これをブラウザ上で走らせる場合XHRは同期的にできなくなっていくからそういう問題があるのかな?とかNodeのデフォルトは非同期なので、同期的にやるにはちょっとハック的なやり方が必要になるかなという感じ。
ただAPIとしては同期的である方がいいとは思ってる。

from efcl.github.io.

azu avatar azu commented on August 31, 2024

テストコードのリファクタリングとしてpage-objectパターンが一般的に使われてるデザインパターンっぽいので、それの話もあるとよさおう。

testiumでも普通にできたので、よさそう。
pageというけど、実際には画面という単位じゃなくてコンポーネント単位でもいいとの事

from efcl.github.io.

azu avatar azu commented on August 31, 2024

タイトル案

テストできないコードをE2Eテストを使ってリファクタリングしよう

レガシーコードをtestiumでリファクタリングする方法

from efcl.github.io.

azu avatar azu commented on August 31, 2024

テストできないコードをE2Eテストを使ってリファクタリングしよう | Web Scratch

from efcl.github.io.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.