Skip to content
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

Merged
merged 1 commit into from
Jan 25, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/sites/demos/pc/app/pager/custom-total.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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万+')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

确保文本匹配中包含的空格是有意的,并且与国际化更改保持一致。

await expect(total.nth(1)).toHaveText('总条数: 条数超出百万')
})
Loading