tiny-vue/examples/docs/resources/pc/demo/grid/tree-table/tree-grid-expand-config.spe...

18 lines
990 B
JavaScript
Raw 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('http://localhost:7130/pc/grid-tree-grid/tree-table-tree-grid-expand-config')
await page
.getByRole('row', {
name: '公司名称GFD科技YX公司 区域:华东区 员工数800 公司简介公司技术和研发实力雄厚是国家863项目的参与者并被政府认定为“高新技术企业”。'
})
.getByText('公司技术和研发实力雄厚是国家863项目的参与者并被政府认定为“高新技术企业”。')
.click()
await page.getByText('区域:华南区').click()
await page.getByRole('row', { name: '3 TGBYX公司 华南区 360' }).locator('i').nth(1).click()
await page.getByRole('row', { name: '2 WWWW科技YX公司 华南区 500' }).locator('i').nth(1).click()
await expect(page.getByText('员工数500')).toBeVisible()
})