mirror of
https://github.com/gromlab-ru/svg-sprites.git
synced 2026-07-22 04:40:17 +03:00
sync
This commit is contained in:
@@ -111,6 +111,12 @@ for (const app of apps) {
|
||||
await expect(icon).toBeVisible()
|
||||
await expect(icon).toHaveAttribute('data-app', app.id)
|
||||
|
||||
if (app.id === 'standalone-vite' || app.id === 'standalone-webpack') {
|
||||
expect(await icon.evaluate((element) => element.tagName.toLowerCase())).toBe('icons-icon')
|
||||
expect(await icon.evaluate((element) => element.shadowRoot !== null)).toBe(true)
|
||||
await expect(icon.locator('svg')).toHaveAttribute('viewBox', '0 0 24 24')
|
||||
}
|
||||
|
||||
const href = await icon.locator('use').getAttribute('href')
|
||||
expect(href).toBeTruthy()
|
||||
expect(href).not.toMatch(/^(?:blob|data|file):/)
|
||||
|
||||
Reference in New Issue
Block a user