python-visualization / python-visualization/folium
Use Playwright for integration tests
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 7.4k
- フォーク
- 2.3k
- 平均マージ
- 17時間 22分
- マージ済み PR(30日)
- 11
説明
We currently use Selenium to test the examples in our documentation for errors. This is useful, but it doesn't catch features silently failing. This happened in our v0.19.0 release.
We need tests that actually verify the expected elements are visible on the page. This requires work: for each example we have to define what elements are expected, possibly after clicking on some other element.
I'd like to try to use Playwright for this. It looks pretty easy to use. It also integrates with Pytest. I'll give this a shot on a couple examples to see if this approach works well. If so, we can apply it to all examples.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、ドキュメントの例に対する既存の Selenium ベースの統合テストと、それらが Pytest でどのように実行されるかを確認します。いくつかの例で Playwright を試し、表示されることが期待される要素と、必要なクリックを定義します。サイレントに失敗する機能をこのアプローチで検出でき、すべての例に一貫して適用できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- playwright, python
- 領域
- documentation, testing-qa
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100