@qavajs/playwright
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

@qavajs/playwright

qavajs implementation for playwright test runner

Installation

npm install @qavajs/playwright`

Configuration

cucumber.ts

import Memory from './memory';
import App from './page_object';

export default {
    paths: ['features/*.feature'],
    require: [
        'node_modules/@qavajs/playwright/steps.js', // package steps
        'step_definitions/*.ts' // custom step definitions
    ],
    memory: new Memory(),
    pageObject: new App()
}

playwright.config.ts

import { defineCucumber } from '@qavajs/playwright';

export default defineConfig({
    testDir: defineCucumber({
        config: 'test-e2e/config.ts',
        profile: 'smoke'
    }),
    ...
});

Development and testing

Install dependencies npm install

Install playwright browsers install:browsers

Build lib npm run build

Execute e2e browser tests npm run test:e2e

Readme

Keywords

none

Package Sidebar

Install

npm i @qavajs/playwright

Weekly Downloads

6

Version

3.0.0

License

MIT

Unpacked Size

221 kB

Total Files

74

Last publish

Collaborators

  • alexgalichenko
  • kirill_bogdanets
  • alexandr_legchilov