tiny-vue_version0/examples/sites/demos/pc/app/grid/serial-column/custom-serial-column.spec.js

10 lines
385 B
JavaScript

import { test, expect } from '@playwright/test'
test('自定义序号规则', async ({ page }) => {
page.on('pageerror', (exception) => expect(exception).toBeNull())
await page.goto('grid-serial-column#serial-column-custom-serial-column')
await expect(page.getByRole('cell', { name: '9' })).toBeVisible()
await expect(page.getByRole('cell', { name: '11' })).toBeVisible()
})