UNPKG
@appetize/create-playwright
Version:
latest (1.0.3)
1.0.3
1.0.2
1.0.1
1.0.0
0.0.2
0.0.1
CLI tool to set up Playwright with Appetize
@appetize/create-playwright
/
templates
/
specFileTemplate.txt
11 lines
(9 loc)
•
287 B
Plain Text
View Raw
1
2
3
4
5
6
7
8
9
10
11
import {test, expect}
from
'@appetize/playwright'
test(
'example test'
,
async
({session}) => {
await
expect(session).toHaveElement({ attributes: {
// replace with the text of an element that appears on your app
text:
'Hello world'
} }) })