test(autofix): sync workflow assertions with split model vars (#7297)

The autofix workflow now plumbs QWEN_AUTOFIX_MODEL (with a
QWEN_PR_REVIEW_MODEL fallback) into the report steps, and the prepare
step documents the verification gate's git diff --quiet check in a
comment. Update the two stale assertions so they match the workflow
again without dropping their original intent.
This commit is contained in:
易良 2026-07-20 15:27:24 +08:00 committed by GitHub
parent 703eb9a05f
commit 5e183dda18
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2219,7 +2219,9 @@ describe('qwen-autofix workflow', () => {
reviewAddressReportStep,
publishPrStep,
]) {
expect(step).toContain("MODEL: '${{ vars.QWEN_PR_REVIEW_MODEL }}'");
expect(step).toContain(
"MODEL: '${{ vars.QWEN_AUTOFIX_MODEL || vars.QWEN_PR_REVIEW_MODEL }}'",
);
expect(step).toContain('MODEL_DISPLAY="${MODEL:-default}"');
expect(step).toContain(footer);
}
@ -2360,7 +2362,10 @@ describe('qwen-autofix workflow', () => {
),
);
expect(prepareBranchAndFeedbackStep).not.toContain('git clean');
expect(prepareBranchAndFeedbackStep).not.toContain('git diff --quiet');
// The prepare step must not gate the unconditional build-output restore on
// a diff check; `git diff --quiet` only appears in a comment documenting
// the verification gate, never as an executed guard here.
expect(prepareBranchAndFeedbackStep).not.toContain('if git diff --quiet');
});
it('clears persistent autofix workdirs before agent steps run', () => {