docs: zh-cn page object models - #2744
Conversation
Translate the entire page_object_models.zh-cn.md from English to Chinese. The file was previously marked with needsTranslation: true and contained mostly untranslated English prose. Translation details: - Translate all prose content (overview, advantages, examples, assertions, page component objects, implementation notes, summary, etc.) - Preserve all code blocks unchanged, including code comments - Remove needsTranslation: true flag - Update title/linkTitle from 'PO设计模式' to '页面对象模型' - Terminology follows ISTQB standard and MDN conventions: * Page Object Model -> 页面对象模型 * Design Pattern -> 设计模式 * Test automation -> 测试自动化 * Assertion -> 断言 * Verification -> 验证 * AUT -> 被测应用 (AUT) * Locator -> 定位器 * Page Component Object -> 页面组件对象 * Composition -> 组合 * Strategy Pattern -> 策略模式 * Fluent syntax -> 流畅语法 * Maintainability -> 可维护性
Updated the Chinese translation of the page_object_models documentation to enhance readability and consistency. Adjusted spacing and punctuation for better clarity. - Fixed spacing issues around UI mapping terminology - Improved sentence structure for better flow
Updated the Chinese translation of the page_object_models documentation to enhance readability and consistency. Adjusted spacing and punctuation for better clarity. - Fixed spacing issues around UI mapping terminology - Improved sentence structure for better flow
👷 Deploy request for selenium-dev pending review.Visit the deploys page to approve it
|
PR Summary by QodoUpdate zh-cn Page Object Models documentation translation
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo
Context used✅ Compliance rules (platform):
10 rules 1.
|
There was a problem hiding this comment.
Pull request overview
Updates the Simplified Chinese version of the “Page object models” documentation page to better match the English source and removes the “needsTranslation” flag now that the page content is translated.
Changes:
- Renamed the page title/linkTitle to “页面对象模型” and removed
needsTranslation: truefrom front matter. - Replaced the English prose with a full zh-cn translation while preserving headings, structure, and code fences.
Comments suppressed due to low confidence (1)
website_and_docs/content/documentation/test_practices/encouraged/page_object_models.zh-cn.md:248
- There is an extra space before the Chinese full stop at the end of the sentence, which will render as visible whitespace after the italic text. Remove the space so the punctuation directly follows the emphasized phrase.
简单来说,某个事物 _由_ 另一个事物 _组成_ 。
- Fix underscore emphasis: 页面_组件_对象 → 页面 _组件_ 对象 (intraword underscores don't render as italics in CommonMark) - Remove binding-specific 'this' from prose: 甚至自身 (this) → 甚至自身 (style guide requires language-agnostic documentation prose) - Remove extra space before Chinese full stop in two sentences Fixes review comments from Copilot and Qodo on PR SeleniumHQ#2744.
|
Code review by qodo was updated up to the latest commit 2961305 |
|
hey @alaahong i don't know the language. the checks have all passed. |
Thanks for contributing to the Selenium site and documentation!
A PR well described will help maintainers to review and merge it quickly
Before submitting your PR, please check our contributing guidelines.
Avoid large PRs, and help reviewers by making them as simple and short as possible.
Description
Update website_and_docs/content/documentation/test_practices/encouraged/page_object_models.zh-cn.md
Motivation and Context
Update PO page as Chinese version
Types of changes
Checklist