Skip to content

Commit

Permalink
✅ Add selenium-based web tests (#1728)
Browse files Browse the repository at this point in the history
* ✅ Add selenium-based web tests

* 🚧 Add txt2img inpaint test

* ✅ Add img2img inpaint test

* ✅ Make inpaint area bigger
  • Loading branch information
huchenlei committed Jul 2, 2023
1 parent 30cc2ec commit 2785cbe
Show file tree
Hide file tree
Showing 4 changed files with 404 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Expand Up @@ -169,3 +169,7 @@ cython_debug/
.vscode/
detected_maps/
annotator/downloads/

# test results and expectations
web_tests/results/
web_tests/expectations/
15 changes: 15 additions & 0 deletions web_tests/README.md
@@ -0,0 +1,15 @@
# Web Tests
Web tests are selenium-based browser interaction tests, that fully simulate
actual user's behaviours.

# Preparation
- Have Google Chrome (Any version) installed.
- Install following python packages with `pip`:
- `selenium`
- `webdriver-manager`

# Run Tests
- Have WebUI with ControlNet installed running on `localhost:7860`
- Run `python main.py --overwrite_expectation` for the first run to set a
baseline.
- Run `python main.py` later to verify the baseline still holds.
Binary file added web_tests/images/ski.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2785cbe

Please sign in to comment.