UNPKG
data-props
Version:
latest (0.0.3)
0.0.3
0.0.2
0.0.1
0.0.0
Reflect host(ish) props to data-* attributes.
github.com/bahrus/data-props
bahrus/data-props
data-props
/
tests
/
Example1.spec.mjs
9 lines
(8 loc)
•
311 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
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'
); });