wangweimin 44ddab3e50 doc update 4 năm trước cách đây
..
assets fb73577852 test: adjust test code 5 năm trước cách đây
.percy.yml 5354ace934 test: set Selenium browser window size 5 năm trước cách đây
1.basic.py 594155d9aa maint: update test & demo、cleanup code 4 năm trước cách đây
10.aiohttp_multiple_session_impliment.py effb32ea11 maint: change `platform.aiohttp.static_routes()`'s signature 4 năm trước cách đây
11.charts.py 1112449229 fix: put_table()'s str cell format error 4 năm trước cách đây
12.cors.py 38c8bde400 test: add misc test case 4 năm trước cách đây
13.misc.py 44ddab3e50 doc update 4 năm trước cách đây
2.script_mode.py e4d986acb4 feat: return more info on `session.get_info()` 5 năm trước cách đây
3.django_backend.py e4d986acb4 feat: return more info on `session.get_info()` 5 năm trước cách đây
4.flask_backend.py 095e90b841 feat(frontend): add `_pywebio_http_pull_interval` query argument 5 năm trước cách đây
5.coroutine_based_session.py 2911878fe5 feat: add popup() to show a popup 5 năm trước cách đây
6.flask_coroutine.py 095e90b841 feat(frontend): add `_pywebio_http_pull_interval` query argument 5 năm trước cách đây
7.multiple_session_impliment.py e4d986acb4 feat: return more info on `session.get_info()` 5 năm trước cách đây
8.flask_multiple_session_impliment.py 095e90b841 feat(frontend): add `_pywebio_http_pull_interval` query argument 5 năm trước cách đây
9.aiohttp_backend.py e4d986acb4 feat: return more info on `session.get_info()` 5 năm trước cách đây
Readme.md 597b42a1f6 test: use run_all.py script to run all test 5 năm trước cách đây
output_diff.py fb73577852 test: adjust test code 5 năm trước cách đây
run_all.sh f0d622a7f4 test: fix a case 5 năm trước cách đây
template.py 6315294511 maint: remove `callback` type button in `actions()` 4 năm trước cách đây
util.py 70656ade74 test: add cors test 5 năm trước cách đây

Readme.md

Test

使用 selenium 进行 + percy 进行测试。

测试的原理为使用selenium打开编写的PyWebIO测试服务,在页面上进行模拟操作, 将一些时刻的网页快照使用percy进行保存,percy可以比较不同提交之间的相同页面的区别。

编写测试用例

// todo

运行测试用例

pip3 install -e ".[dev]" 
npm install -D @percy/agent
export PERCY_TOKEN=[projects-token]

npx percy exec -- python3 1.basic_output.py auto