forked from opentiny/tiny-vue
11 lines
666 B
TypeScript
11 lines
666 B
TypeScript
import { test, expect } from '@playwright/test'
|
|
|
|
test('文字滚动方向', async ({ page }) => {
|
|
page.on('pageerror', (exception) => expect(exception).toBeNull())
|
|
await page.goto('scroll-text#scroll-direction')
|
|
await expect(page.locator('.tiny-scroll-text__content > div').nth(0)).toHaveCSS('animation-name', 'moveLeft')
|
|
await expect(page.locator('.tiny-scroll-text__content > div').nth(1)).toHaveCSS('animation-name', 'moveRight')
|
|
await expect(page.locator('.tiny-scroll-text__content > div').nth(2)).toHaveCSS('animation-name', 'moveUp')
|
|
await expect(page.locator('.tiny-scroll-text__content > div').nth(3)).toHaveCSS('animation-name', 'moveDown')
|
|
})
|