forked from opentiny/tiny-vue
13 lines
430 B
JavaScript
13 lines
430 B
JavaScript
import { test, expect } from '@playwright/test'
|
|
|
|
test.describe('Rate 自定义未选中图标类名', () => {
|
|
test('自定义未选中图标', async ({ page }) => {
|
|
page.on('pageerror', (exception) => expect(exception).toBeNull())
|
|
await page.goto('rate#not-selected-class')
|
|
|
|
const icon = page.locator('.tiny-rate__star > .tiny-svg')
|
|
|
|
await expect(icon.nth(4)).toHaveCSS('fill', 'rgba(25, 25, 25, 0.05)')
|
|
})
|
|
})
|