@qavajs/playwright-wdio
v1.0.0
Published
steps to interact with playwright wdio adapter
Readme
@qavajs/playwright
qavajs implementation for playwright wdio fixtures. Enables features of webdriverio with playwright test runner.
Installation
npm install @qavajs/playwright-wdioConfiguration
create qavajs.config.ts
import {defineConfig } from "@qavajs/playwright-wdio";
import Memory from './memory';
import App from './page_object';
export default {
paths: ['features/*.feature'],
require: [
'node_modules/@qavajs/playwright-wdio/steps.js', // package steps
'step_definitions/*.ts' // custom step definitions
],
memory: new Memory(),
pageObject: new App()
}playwright.config.ts
import { defineConfig } from '@playwright/test';
import { WdioOptions } from '@qavajs/playwright-wdio';
export default defineConfig<WdioOptions>({
testMatch: 'qavajs.config.ts',
projects: [
{
name: 'chrome',
use: {
wdioLaunchOptions: {
logLevel: 'error',
capabilities: {
browserName: 'chrome',
"goog:chromeOptions": {
args: ['headless=new']
}
},
}
}
}
]
});Development and testing
Install dependencies
npm installBuild lib
npm run buildExecute e2e browser tests
npm run test:e2e