@lcrespilho/playwright-fixtures
v6.0.2
Published
Playwright fixtures for dataLayer, collects_ga3 and collects_ga4
Downloads
55
Readme
PubSub
Generic PubSub class responsible only for managing messages and subscribers. The page publishes messages. Playwright code consumes them.
Kind: global class
pubSub.publish()
Publish messages. Called internally by fixtures.
Kind: instance method of PubSub
pubSub.waitForMessage()
Generic method to wait for a message based on a predicate function. Returns a promise that resolves with the message or rejects on timeout.
Kind: instance method of PubSub
How to publish to npm registry
https://www.youtube.com/watch?v=Nh9xW2-ZOEU
Using yalc for local testing
On this package folder
npm install yalc -g # only first time per machine
yalc publish # only first time for this package
npx tsc --watch # to compile the package inside dist folder (.js files)
yalc publish --push # for every package change
# Removal
yalc installations clean @lcrespilho/playwright-fixtures
yalc remove
# also delete ~/.yalc and ./.yalc foldersOn local projects
yalc add @lcrespilho/playwright-fixtures # for installation
# Removal
yalc remove @lcrespilho/playwright-fixtures
# also delete ./.yalc folder
npm install @lcrespilho/playwright-fixtures # reinstall from npm registryObs: é furada. Melhor usar "npm pack" da próxima vez.
