@qavajs/playwright
v4.1.0
Published
steps to interact with playwright
Keywords
Readme
@qavajs/playwright
qavajs implementation for playwright test runner
Installation
npm install @qavajs/playwrightConfiguration
create qavajs.config.ts
import { defineConfig } from '@qavajs/playwright';
import Memory from './memory';
import App from './page_object';
export default defineConfig({
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 { defineConfig } from '@playwright/test';
export default defineConfig({
testMatch: 'qavajs.config.ts',
...
});Development and testing
Install dependencies
npm installInstall playwright browsers
install:browsersBuild lib
npm run buildExecute e2e browser tests
npm run test:e2e