tiny-vue/examples/sites/demos/pc/app/split/horizontal-collapse-left.sp...

9 lines
364 B
TypeScript

import { test, expect } from '@playwright/test'
test('简易模式中,单向展开', async ({ page }) => {
page.on('pageerror', (exception) => expect(exception).toBeNull())
await page.goto('split#horizontal-collapse')
await page.locator('.tiny-split-trigger-button').first().click()
await expect(page.locator('.left-pane')).toHaveCSS('width', '0px')
})