UNPKG

weikaopu-wdio-ui5-service

Version:

WebdriverIO plugin for testing UI5 browser-based apps

142 lines (141 loc) 5.88 kB
{ "name": "weikaopu-wdio-ui5-service", "version": "2.1.1", "description": "WebdriverIO plugin for testing UI5 browser-based apps", "keywords": [ "wdi5", "wdio-service", "ui5", "openui5", "sapui5" ], "homepage": "https://github.com/ui5-community/wdi5#readme", "repository": { "type": "git", "url": "https://github.com/ui5-community/wdi5.git" }, "license": "(Apache-2.0 or DERIVED BEER-WARE)", "author": "the UI5 community <do_not_use@openui5.org> (https://github.com/ui5-community)", "type": "module", "exports": { "types": "./esm/index.d.ts", "import": "./esm/index.js", "require": "./cjs/index.js" }, "types": "esm/index.d.ts", "files": [ "esm", "cjs", "client-side-js" ], "workspaces": [ ".", "examples/fe-app", "examples/ui5-js-app", "examples/ui5-js-app-esm", "examples/ui5-ts-app", "examples/cucumber", "examples/cap-bookshop-wdi5" ], "scripts": { "// build time": "refers to developing wdi5/wdio-ui5-service itself", "clean": "rimraf cjs/* && rimraf esm/*", "build": "run-s -c clean _build:cjs _build:cjs:pkgJson _build:esm", "_build:cjs:pkgJson": "node .retrofit-pkg-json.js", "_build:cjs": "tsc --p tsconfig-cjs.json", "_build:esm": "tsc --p tsconfig.json", "build:watch": "npm-run-all clean --parallel _build:watch:cjs _build:cjs:pkgJson _build:watch:esm", "_build:watch:cjs": "tsc -w --p tsconfig-cjs.json", "_build:watch:esm": "tsc -w --p tsconfig.json", "// test time": "refers to testing wdio-ui5-service", "_startApp:js": "soerver -d ./examples/ui5-js-app/webapp -p 8888 -x ./examples/ui5-js-app/webapp/proxyrc.json", "_startApp:js-tooling": "npm run serve --workspace=examples/ui5-js-app", "_startApp:js:esm": "npm start --workspace=examples/ui5-js-app-esm -- -p 8082 ", "_startApp:ts": "npm run start --workspace=examples/ui5-ts-app", "_startApp:fe": "npm run serve --workspace=examples/fe-app", "_startApp:cap": "npm run start --workspace=examples/cap-bookshop-wdi5", "_test:js-app": "wait-on tcp:8888 && wait-on tcp:8080 && npm run test --workspace=examples/ui5-js-app", "_test:ts-app": "wait-on tcp:8080 && npm run test --workspace=examples/ui5-ts-app", "_test:cap-app": "wait-on tcp:4004 && npm run wdi5 --workspace=examples/cap-bookshop-wdi5 -- --headless", "_test-h:js-app": "wait-on tcp:8888 && wait-on tcp:8080 && npm run test-h --workspace=examples/ui5-js-app", "_test-h:js-app:esm": "wait-on tcp:8082 && npm run wdi5 --workspace=examples/ui5-js-app-esm -- --headless ", "_test-h:ts-app": "wait-on tcp:8080 && npm run test -w examples/ui5-ts-app -- --headless && npm run test:lateInject -w examples/ui5-ts-app -- --headless", "test-h:js-app": "run-p -r _startApp:js _startApp:js-tooling _test-h:js-app", "test-h:js-app:esm": "run-p -r _startApp:js:esm _test-h:js-app:esm", "test:ts-app": "run-p -r _startApp:ts _test:ts-app", "test:cucumber": "npm run test --workspace=examples/cucumber", "test-h:ts-app": "run-p -r _startApp:ts _test-h:ts-app", "test:js-app": "run-p -r _startApp:js _startApp:js-tooling _test:js-app", "_test:fe-app": "wait-on tcp:8088 && npm run test:wdi5 --workspace=examples/fe-app", "test:fe-app": "run-p -r _startApp:fe _test:fe-app", "//test:auth": "this runs either locally or on browserstack depending on the env variable BROWSERSTACK", "test:auth": "npm run test:authentication:bstack -w examples/ui5-ts-app", "test:auth:cert": "npm run test:authentication:cert -w examples/ui5-ts-app", "test:capAuth": "run-p -r _startApp:cap _test:cap-app", "//test:protocol": "runs the same test with webdriver and devtools protocol", "test:protocol": "npm run test:protocol -w examples/ui5-ts-app", "//test:wz": "specific tests for SAP Build Workzone, standard edition", "test:wz:testlib": "npm run test:wz --workspace=examples/ui5-ts-app -- --headless --spec test/e2e/workzone/testlib-journey.test.ts", "test:wz:regular": "npm run test:wz --workspace=examples/ui5-ts-app -- --headless --spec test/e2e/workzone/regular-journey.test.ts", "test": "cross-env TS_NODE_PROJECT=\"test/tsconfig.json\" mocha", "prepare": "husky install", "release": "standard-version", "startDoc": "docsify serve ./docs" }, "lint-staged": { "*": "prettier --ignore-unknown --write", "*.ts": "eslint --cache --fix" }, "dependencies": { "devtools": "^8.40.2", "dotenv": "^16.4.7", "semver": "^7.7.1", "playwright-client-certificate-login": "^0.0.3" }, "devDependencies": { "@commitlint/cli": "^19.7.1", "@commitlint/config-conventional": "^19.7.1", "@sap/approuter": "19.0.0", "@sap/ux-ui5-fe-mockserver-middleware": "^1.6.5", "@types/openui5": "^1.132.0", "@types/sinon": "^17.0.3", "@typescript-eslint/eslint-plugin": "^8.23.0", "@typescript-eslint/parser": "^8.23.0", "@ui5/cli": "^4", "@wdio/sauce-service": "^8", "cross-env": "^7.0.3", "deepmerge": "^4.3.1", "docsify-cli": "4.4.4", "eslint": "^8", "eslint-config-prettier": "^9.1.0", "eslint-plugin-prettier": "^5.2.3", "fs-extra": "^11.3.0", "husky": "^9.1.7", "lint-staged": "^15.4.3", "marky": "^1.2.5", "mbt": "^1.2.34", "mocha": "^11.1.0", "npm-run-all": "^4.1.5", "prettier": "^3.4.2", "replace-in-file": "^8.3.0", "rimraf": "^6.0.1", "sinon": "^19.0.2", "soerver": "^0.0.3", "standard-version": "^9.5.0", "ts-node": "^10.9.2", "typescript": "^5.7.3", "wait-on": "^8.0.2" }, "peerDependencies": { "@wdio/cli": ">=8.14.0 <9", "@wdio/local-runner": "^8", "@wdio/mocha-framework": "^8", "@wdio/spec-reporter": "^8", "@wdio/types": "^8", "webdriverio": ">8.32.2 <9" }, "engines": { "node": ">=18", "npm": ">=7" } }