tiny-vue/examples/docs/resources/pc/demo/grid/tree-table/tree-grid-expand.spec.js

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