forked from opentiny/tiny-vue
13 lines
481 B
TypeScript
13 lines
481 B
TypeScript
import { test, expect } from '@playwright/test'
|
|
|
|
test('layout对齐方式', async ({ page }) => {
|
|
page.on('pageerror', (exception) => expect(exception).toBeNull())
|
|
|
|
await page.goto('layout#alignment')
|
|
|
|
const layoutDiv = page.locator('.pc-demo-container .tiny-layout > div')
|
|
await expect(layoutDiv.first()).toHaveClass(/row-justify-start/)
|
|
await expect(layoutDiv.nth(1)).toHaveClass(/row-justify-center/)
|
|
await expect(layoutDiv.nth(2)).toHaveClass(/row-justify-end/)
|
|
})
|