Skip to content

[AT] deepin-editor AT-SPI 测试套件(element-map 双字段管线) - #585

Draft
re2zero wants to merge 1 commit into
linuxdeepin:masterfrom
re2zero:agent/at-bot/a8a7ae185ff7
Draft

re2zero wants to merge 1 commit into
linuxdeepin:masterfrom
re2zero:agent/at-bot/a8a7ae185ff7

Conversation

@re2zero

@re2zero re2zero commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

AT 测试套件 — 编码切换(场景四 · 定向生成 · 形态 A)

用例信息

  • 模块: enc_switch(编辑模式)
  • 用例: 编码切换(enc_switch_001)
  • 应用: deepin-editor

覆盖门禁

  • 分母(持久定位键): 3
  • 分子(已覆盖): 3
  • 覆盖率: 100% — PASS

element-map 双字段状态

元素 ui_name id_name object_name locator
PToolButton UTF-8菜单 PToolButton accessible_id
PActUtf8 UTF-8 PActUtf8 accessible_id
PTextEdit 文本编辑区 PTextEdit accessible_id
GB18030 GB18030 TBD TBD unresolved(瞬态,dtk_dropdown_menu items)

验证状态

  • Gate 4(Generation Gate): PASS
  • Gate 5(Semantic Safety Gate): PASS
  • 运行时 smoke: 通过(xvfb 离屏)

交付物

  • tests/at/yaml/elements.yaml
  • tests/at/yaml/enc_switch/enc_switch.suite.yaml
  • tests/at/element-coverage-manifest.yaml
  • tests/at/coverage-report.yaml
  • tests/at/cases_mapped.yaml

Summary by Sourcery

Add an AT-SPI encoding-switch test suite for deepin-editor with element mappings and coverage reporting.

New Features:

  • Add an accessibility-driven encoding-switch test for deepin-editor, covering text entry, encoding selection, saving, and result verification.

Enhancements:

  • Introduce element mappings and coverage manifests for the encoding-switch scenario, including explicit tracking of unresolved transient menu items.

Tests:

  • Add mapped test-case definitions and suite configuration for the encoding-switch scenario with 100% coverage of persistent elements.

场景四(定向生成,形态 A)— 编码切换用例

- 新增 enc_switch 模块测试套件(编码切换场景)
- element-map 双字段管线:PToolButton/PActUtf8/PTextEdit 均以 accessible_id 定位
- GB18030 菜单项无 objectName/setAccessibleName → dtk_dropdown_menu + items 显示文本
- 覆盖门禁 100%(3/3 持久定位键全部覆盖)
- Gate 4/5 静态校验通过
@deepin-ci-robot

Copy link
Copy Markdown

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@deepin-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: re2zero

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@sourcery-ai

sourcery-ai Bot commented Sep 13, 2026

Copy link
Copy Markdown

Reviewer's Guide

新增 deepin-editor 编码切换 AT-SPI 测试及双字段 element-map 相关产物:测试通过 accessible_id 定位稳定元素,使用下拉菜单项名称处理 GB18030 瞬态项,并以清单和报告确认 3 个持久定位元素全部覆盖。

File-Level Changes

Change Details Files
新增 deepin-editor 编码切换 AT 场景及其映射产物,使用 AT-SPI accessible_id 定位稳定控件,并通过下拉菜单动作处理瞬态编码项。
  • 覆盖打开编码菜单、输入文本、选择 UTF-8、保存文件及结果断言的完整流程
  • 为工具按钮、UTF-8 菜单项和文本编辑区建立 accessible_id 元素映射
  • 生成 cases_mapped、覆盖率报告和元素覆盖清单,声明 3/3 持久定位键覆盖
  • 将 GB18030 标记为缺少 id/object name 的未解析瞬态菜单项,不纳入持久定位键分母
tests/at/yaml/enc_switch/enc_switch.suite.yaml
tests/at/cases_mapped.yaml
tests/at/yaml/elements.yaml
tests/at/element-coverage-manifest.yaml
tests/at/coverage-report.yaml

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@deepin-bot

deepin-bot Bot commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

TAG Bot

New tag: 6.6.3
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #594

@deepin-bot

deepin-bot Bot commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

TAG Bot

New tag: 6.6.4
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #596

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants