-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test(pager): [pager] fix pager e2e test error #2846
Conversation
WalkthroughThe pull request involves minor formatting changes in a test specification file for a pager component. The modifications are focused on adding whitespace in text assertions, specifically inserting a space after the colon in expected text strings related to total count display. These changes do not impact the underlying functionality of the test or component but adjust the expected text formatting. Changes
Suggested labels
Suggested reviewers
Possibly related PRs
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Walkthrough修复了由于国际化更改导致的pager e2e测试用例错误。主要调整了测试用例中的文本匹配,以适应新的国际化格式。 Changes
|
@@ -8,6 +8,6 @@ test('自定义总条数', async ({ page }) => { | |||
const pager = demo.locator('.tiny-pager') | |||
const total = pager.locator('.tiny-pager__total') | |||
|
|||
await expect(total.first()).toHaveText('总条数:100万+') | |||
await expect(total.nth(1)).toHaveText('总条数:条数超出百万') | |||
await expect(total.first()).toHaveText('总条数: 100万+') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
确保文本匹配中包含的空格是有意的,并且与国际化更改保持一致。
WalkthroughFix the error of the Page E2E test cases caused by international changes. The text matching in the test case is mainly adjusted to adapt to the new international format. Changes| File | Summary | |
PR
修复国际化改动导致pager e2e测试用例报错
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information
Summary by CodeRabbit