tiny-vue_version0/examples/sites/demos/pc/app/grid/expand/has-row-expand.spec.js

12 lines
714 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-expand#expand-has-row-expand')
await page.getByRole('row', { name: '1 GFD科技YX公司 华东区 800' }).locator('i').click()
await expect(page.locator('div').filter({ hasText: '当前展开行1' }).nth(1)).toBeVisible()
await expect(page.locator('.tiny-grid-body__expanded-cell')).toHaveText(
'公司名称GFD科技YX公司区域华东区员工数800公司简介公司技术和研发实力雄厚是国家863项目的参与者并被政府认定为“高新技术企业”。'
)
})