Creator App Tests / PR Spam Gate (push) Skipped
Frontend Tests / PR Spam Gate (push) Skipped
NPM Format (website & console) / PR Spam Gate (push) Skipped
Pre-commit Checks / PR Spam Gate (push) Skipped
QwenPaw Creator Plugin Release / check-version (push) Canceled after 0s
QwenPaw Creator Plugin Release / upload-oss (push) Canceled after 0s
Tests / PR Spam Gate (push) Skipped
CodeQL / CodeQL (python) (push) Canceled after 0s
CodeQL / CodeQL (typescript) (push) Canceled after 0s
Creator App Tests / Creator Backend Tests (push) Canceled after 0s
Creator App Tests / Creator UI Build & Tests (push) Canceled after 0s
E2E Smoke Tests / Playwright UI Smoke (push) Canceled after 0s
Frontend Tests / Detect console changes (push) Canceled after 0s
NPM Format (website & console) / website format check (push) Canceled after 0s
NPM Format (website & console) / console format check (push) Canceled after 0s
Pre-commit Checks / Pre-commit (push) Canceled after 0s
QwenPaw Data Plugin Release / check-version (push) Canceled after 0s
Tests / Detect code changes (push) Canceled after 0s
Frontend Tests / Vitest Unit Tests (push) Canceled after 0s
Frontend Tests / Frontend Summary (push) Canceled after 0s
QwenPaw Data Plugin Release / upload-oss (push) Canceled after 0s
Tests / Maintainer Approval (push) Canceled after 0s
Tests / Unit Tests - py3.11 - macos-latest (push) Canceled after 0s
Tests / Unit Tests - py3.11 - ubuntu-latest (push) Canceled after 0s
Tests / Unit Tests - py3.13 - ubuntu-latest (push) Canceled after 0s
Tests / Unit Tests - py3.11 - windows-latest (push) Canceled after 0s
Tests / Contract Tests - py3.11 - macos-latest (push) Canceled after 0s
Tests / Contract Tests - py3.11 - ubuntu-latest (push) Canceled after 0s
Tests / Contract Tests - py3.13 - ubuntu-latest (push) Canceled after 0s
Tests / Contract Tests - py3.11 - windows-latest (push) Canceled after 0s
Tests / Integrated Tests - py3.11 - macos-latest - p0 (push) Canceled after 0s
Tests / Integrated Tests - py3.11 - macos-latest - p1 (push) Canceled after 0s
Tests / Integrated Tests - py3.11 - macos-latest - p2 (push) Canceled after 0s
Tests / Integrated Tests - py3.11 - ubuntu-latest - fallback (push) Canceled after 0s
Tests / Integrated Tests - py3.11 - ubuntu-latest - p0 (push) Canceled after 0s
Tests / Integrated Tests - py3.11 - ubuntu-latest - p1 (push) Canceled after 0s
Tests / Integrated Tests - py3.11 - ubuntu-latest - p2 (push) Canceled after 0s
Tests / Integrated Tests - py3.13 - ubuntu-latest - p0 (push) Canceled after 0s
Tests / Integrated Tests - py3.13 - ubuntu-latest - p1 (push) Canceled after 0s
Tests / Integrated Tests - py3.13 - ubuntu-latest - p2 (push) Canceled after 0s
Tests / Integrated Tests - py3.11 - windows-latest - p0 (push) Canceled after 0s
Tests / Integrated Tests - py3.11 - windows-latest - p1 (push) Canceled after 0s
Tests / Integrated Tests - py3.11 - windows-latest - p2 (push) Canceled after 0s
Tests / Coverage Report (push) Canceled after 0s
Tests / Test Summary (push) Canceled after 0s
66 lines
2.1 KiB
Python
66 lines
2.1 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
from uuid import uuid4
|
|
|
|
import pytest
|
|
from playwright.sync_api import expect
|
|
|
|
from pages.home_page import HomePage
|
|
|
|
|
|
pytestmark = pytest.mark.shell
|
|
|
|
|
|
def test_home_and_composer_use_current_project_contract(page):
|
|
home = HomePage(page).open()
|
|
expect(page.get_by_role("heading", name="我的项目")).to_be_visible()
|
|
composer = home.open_composer()
|
|
expect(
|
|
page.get_by_text("开始创作吧!请将目标、素材和限制交给 Agent"),
|
|
).to_be_visible()
|
|
composer.select_scenario("通用")
|
|
composer.fill_name("E2E 冒烟项目").fill_goal("只验证当前 Composer")
|
|
composer.add_url("https://example.com/ref.mp4")
|
|
expect(
|
|
composer.attachment_chip("https://example.com/ref.mp4"),
|
|
).to_be_visible()
|
|
expect(
|
|
composer.root.get_by_role("button", name="启动 Agent", exact=True),
|
|
).to_be_enabled()
|
|
|
|
|
|
def test_model_config_values_are_visible_without_legacy_surfaces(page, api):
|
|
config = api.models_config()
|
|
assert set(config) == {
|
|
"llm",
|
|
"vlm",
|
|
"grounding",
|
|
"asr",
|
|
"tts",
|
|
"image",
|
|
"video",
|
|
"oss",
|
|
"creationCheckpoints",
|
|
"executionAuthorization",
|
|
}
|
|
HomePage(page).open().open_model_config()
|
|
modal = page.locator(".model-config-modal")
|
|
expect(modal.locator("button.segmented-tab")).to_have_count(7)
|
|
|
|
|
|
def test_create_snapshot_and_delete_project(api):
|
|
created = api.create_project(f"E2E contract {uuid4().hex[:8]}")
|
|
project_id = created["projectId"]
|
|
assert created["projectSnapshotId"]
|
|
try:
|
|
snapshot = api.project_snapshot(project_id)
|
|
assert snapshot["projectId"] == project_id
|
|
assert snapshot["project"]["schema_version"] == 4
|
|
assert snapshot["project"]["timelines"]["order"] == ["timeline:main"]
|
|
session = api.get(f"/projects/{project_id}/session")
|
|
assert session.status_code == 200
|
|
assert session.json()["session"]["status"] == "IDLE"
|
|
finally:
|
|
api.delete_project(project_id)
|
|
assert api.get(f"/projects/{project_id}/project").status_code == 404
|