e2e-brikl-api
v1.0.1
Published
facilitate request sending for Brikl Playwright's E2E
Downloads
1
Readme
E2E brikl API
facilitate request sending for Brikl Playwright's E2E
Prerequisite to install this package
this package version is only applicable to E2E playwright repo
Must have following environment variables setup in playwright repository
DASHBOARD_AUTH_USERNAME=...
DASHBOARD_AUTH_PASSWORD=...
CLIENT_ID=...
CLIENT_SECRET=...
How to use package
- install package with pnpm or npm
npm install e2e-brikl-api
or
pnpm install e2e-brikl-api
- initiale instant and call functions with operation name
import {BriklGraphQL }from 'e2e-brikl-api'
const apiInstant = new BriklGraphQL(nbeShopId);
// call NBE
const NBEResponse = await apiInstant.requestGrapQLNBE('dashboardGetProductsNB', {filter})
// call OBE
const OBEResponse = await apiInstant.requestGrapQLOBE('getShop', {shopId});
// call SF
const SFResponse = await apiInstant.requestGrapQLSF('cartItemsCountSF', {id})