0.1.1 • Published 3 years ago

xenqa v0.1.1

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

XenQA Core

Package with core UI, API and util functions

Available:

  • ui commands executed via UI
  • api interfaces for api interaction
  • utils 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
0.1.1

3 years ago

0.1.0

3 years ago