0.1.1 • Published 3 years ago
xenqa v0.1.1
XenQA Core
Package with core UI, API and util functions
Available:
ui
commands executed via UIapi
interfaces for api interactionutils
various utility (faker, getRandomNumber, waitForIdleNetwork) functions
How to use
- install:
npm install xenqa
- import and use:
// enable custom commands and helpers from core library in Cypress
import 'xenqa/ui/support';
// all library
import * as xenqa from 'xenqa';
xenqa.ui.login('test', 'test');
// just single part
import { utils } from 'xenqa';
const firstName = utils.faker.name.firstName();
// call api
import { api } from 'xenqa';
api.publicAPI({
secretKey: 'test'
})
.invoice.getAll()
.should('have.length.gte', 0);
Test
Tests are located in cypress
folder and could be executed with:
npm run test