Skip to content

Commit

Permalink
fix: ai test
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyutaotao committed Jan 24, 2025
1 parent 4671da1 commit 8ee2c55
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,10 @@ jobs:
if-no-files-found: ignore

- name: Check if script failed
if: steps.test-ai.outcome == 'failure'
if: steps.test-ai.outcome == 'failure' || steps.e2e-tests.outcome == 'failure' || steps.e2e-tests-cache.outcome == 'failure' || steps.e2e-tests-report.outcome == 'failure'
run: exit 1





4 changes: 2 additions & 2 deletions packages/midscene/tests/ai/plan/plan-to-target.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import { savePositionImg } from '@midscene/shared/img';
import { expect, it, test } from 'vitest';
import { getPageTestData } from '../evaluate/test-suite/util';

const isUiTars = process.env.MIDSCENE_USE_VLM_UI_TARS !== '1';
const isUiTars = process.env.MIDSCENE_USE_VLM_UI_TARS === '1';

test.skipIf(isUiTars)('only run in ui-tars', () => {
test.skipIf(!isUiTars)('only run in ui-tars', () => {
it('plan to target', async () => {
const { context } = await getPageTestData(
path.join(__dirname, '../evaluate/test-data/todo'),
Expand Down

0 comments on commit 8ee2c55

Please sign in to comment.