UNPKG

data-props

Version:

Reflect host(ish) props to data-* attributes.

9 lines (8 loc) 311 B
import { test, expect } from '@playwright/test'; test('Example1', async ({ page }) => { await page.goto('./tests/Example1.html'); // wait for 1 seconds await page.waitForTimeout(1000); const editor = page.locator('#target'); await expect(editor).toHaveAttribute('mark', 'good'); });