-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update workflow * add api key * test * fix * fix * fix * test * fix test * fix test * remove pr trigger * fix * fix test * fix perm * test workflow * fix test workflow * fix test workflow * fix test workflow * fix test workflow * final(?) test * update worker * use class name * fix toggle server endpoint * update comment * rm api key file * fix * Update snapshots (#12) * Update test expectations [skip ci] * rm old snapshots * Update test expectations [skip ci] --------- Co-authored-by: wjymtg <[email protected]> * fix * test * fix --------- Co-authored-by: wjymtg <[email protected]>
- Loading branch information
Showing
431 changed files
with
164 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,9 @@ name: Update Browser Tests Expectations | |
|
||
on: | ||
workflow_dispatch: | ||
# TODO: more proper trigger | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
update_browser_expectations: | ||
|
@@ -33,9 +35,6 @@ jobs: | |
uses: actions/checkout@v4 | ||
with: | ||
repository: siliconflow/bizyair_frontend | ||
# TODO: update after PR is merged | ||
# TODO2: use master when it's ready | ||
ref: dev_bbs_ci | ||
path: ComfyUI/custom_nodes/BizyAir/bizyair_frontend | ||
|
||
- uses: actions/setup-python@v4 | ||
|
@@ -71,10 +70,13 @@ jobs: | |
npm install | ||
working-directory: ComfyUI/custom_nodes/BizyAir/bizyair_frontend | ||
|
||
- name: Copy over test workflows | ||
- name: Set up test environment | ||
run: | | ||
mkdir -p ComfyUI/user/default | ||
cp -r ComfyUI/custom_nodes/BizyAir/bizyair_frontend/browser_tests/workflows ComfyUI/user/default | ||
python3 ComfyUI/custom_nodes/BizyAir/tests/write_api_ini_file.py | ||
env: | ||
BIZYAIR_KEY: ${{ secrets.BIZYAIR_KEY }} | ||
|
||
- name: Update bizyair_frontend.js | ||
run: | | ||
|
@@ -90,30 +92,32 @@ jobs: | |
|
||
- name: Run Playwright tests and update snapshots | ||
run: | | ||
npx playwright test --update-snapshots --project chromium chromium-2x | ||
continue-on-error: true | ||
npx playwright test --update-snapshots --project chromium chromium-2x --workers=4 | ||
working-directory: ComfyUI/custom_nodes/BizyAir/bizyair_frontend/browser_tests | ||
|
||
- uses: actions/upload-artifact@v4 | ||
if: always() | ||
if: success() || failure() | ||
with: | ||
name: playwright-report | ||
path: ComfyUI/custom_nodes/BizyAir/bizyair_frontend/browser_tests/playwright-report/ | ||
retention-days: 30 | ||
|
||
- name: Debugging info | ||
if: success() | ||
run: | | ||
git status | ||
working-directory: ComfyUI/custom_nodes/BizyAir/bizyair_frontend/browser_tests | ||
|
||
# TODO: if need to support PR, refer to https://github.com/Comfy-Org/ComfyUI_frontend/blob/57701f6145f622bf17237410c165966fb4aecc75/.github/workflows/test-browser-exp.yaml | ||
# Using a dedicated branch to update test expectations, because | ||
# master is protected, updated images need to push to that branch and PR to master | ||
# NOTE: PR from github action bot is not enabled so need to manually create a PR | ||
- name: Commit updated expectations | ||
continue-on-error: true | ||
run: | | ||
git config --global user.name 'github-actions' | ||
git config --global user.email '[email protected]' | ||
git fetch | ||
git add . | ||
git commit -m "Update test expectations [skip ci]" | ||
git push | ||
working-directory: ComfyUI/custom_nodes/BizyAir/bizyair_frontend/browser_tests | ||
if: success() | ||
uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: "Update test expectations [skip ci]" | ||
file_pattern: "*.png" | ||
branch: update_snapshots | ||
skip_fetch: false | ||
skip_checkout: false | ||
repository: ComfyUI/custom_nodes/BizyAir/bizyair_frontend/browser_tests |
Oops, something went wrong.