@qavajs/cypress

0.2.0 • Public • Published

@qavajs/cypress

qavajs implementation on top of cypress runner

Installation

npm install @qavajs/cypress npm install @qavajs/cypress-runner-adapter

Configuration

cypress.config.js

const { defineConfig } = require('cypress');
const cucumber = require('@qavajs/cypress-runner-adapter/adapter');
module.exports = defineConfig({
    e2e: {
        specPattern: 'cypress/features/**/*.feature', //path to features
        supportFile: 'cypress/support/e2e.js', //path to main support file
        setupNodeEvents(on, config) {
            on('file:preprocessor', cucumber)
        },
    },
});

support file

import defineQavajs from '@qavajs/cypress/defineQavajs';
import '@qavajs/cypress';

import PageObject from '../page_object/'; // path to qavajs page objects
import Memory from '../memory'; // path to qavajs memory

defineQavajs({
    pageObject: new PageObject(),
    memory: new Memory()
});

Development and testing

Install dependencies npm install

Execute tests npm run test

Debug tests npm run debug

Dependencies (0)

    Dev Dependencies (4)

    Package Sidebar

    Install

    npm i @qavajs/cypress

    Weekly Downloads

    1

    Version

    0.2.0

    License

    MIT

    Unpacked Size

    47.4 kB

    Total Files

    18

    Last publish

    Collaborators

    • alexandr_legchilov
    • kirill_bogdanets
    • alexgalichenko