tiny-vue_version0/examples/sites/demos/pc/app/grid/operation-column/grid-pager-reserve.spec.js

24 lines
996 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { test, expect } from '@playwright/test'
test('翻页后保留选中状态', async ({ page }) => {
page.on('pageerror', (exception) => expect(exception).toBeNull())
await page.goto('grid-operation-column#operation-column-grid-pager-reserve')
await page
.getByRole('row', {
name: '1 GFD科技YX公司 华东区 福州 公司技术和研发实力雄厚是国家863项目的参与者并被政府认定为“高新技术企业”。'
})
.locator('path')
.first()
.click()
await page.getByRole('list').getByText('2').click()
await page
.getByRole('row', {
name: '8 西安门福德宝网络技术YX公司 华东区 厦门 公司技术和研发实力雄厚是国家863项目的参与者并被政府认定为“高新技术企业”。'
})
.locator('path')
.first()
.click()
await page.getByText('1', { exact: true }).click()
await expect(page.locator('.tiny-grid-body__row').nth(0).locator('input')).toBeChecked()
})