tiny-vue/examples/sites/demos/pc/app/rate/not-selected-class.spec.js

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)')
})
})