Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# npm
node_modules
npm-debug.log
types

# env
.env
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,13 @@ pnpm tonkeeper
- [Node.js](https://nodejs.org/) — main platform for automation implementation
- [Playwright](https://playwright.dev/) + [BDD](https://vitalets.github.io/playwright-bdd/) — framework browser automation used for implementation steps uses in scenarios


## Release

```bash
pnpm release [--dry-run]
```

## TODO research

- https://www.browserstack.com/
Expand Down
7 changes: 7 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Changelog

## [Unreleased]

### Added

- Provided methods for Ton Connect Widget and Tonkeeper for writing acceptance tests using Playwright
34 changes: 33 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,25 @@
{
"name": "ton-connect-qa",
"name": "@tonconnect/qa",
"version": "1.0.0-alpha.0",
"license": "MIT",
"type": "module",
"exports": {
"types": "./types/index.d.ts",
"default": "./dist/index.js"
},
"main": "./dist/index.js",
"types": "./types/index.d.ts",
"files": [
"README.md",
"changelog.md",
"contributing.md",
"qa",
"types",
"dist"
],
"scripts": {
"build": "rm -fr dist && tsc --declaration --project tsconfig-release.json --outDir dist",
"release": "pnpm build && pnpm lint && pnpm test && pnpm release-it",
"test": "npx bddgen && npx playwright test",
"tonkeeper": "npx playwright test --config playwright-test.config.ts",
"watch:bdd": "nodemon -w ./features -w ./steps -e feature,js,ts --exec \"npx bddgen\"",
Expand All @@ -13,6 +29,20 @@
"format": "prettier --write test qa steps features *.ts",
"report": "npx http-server ./qa-report -c-1 -o index.html"
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"release-it": {
"github": {
"release": true
},
"plugins": {
"@release-it/keep-a-changelog": {
"filename": "changelog.md"
}
}
},
"prettier": {
"tabWidth": 2,
"useTabs": false,
Expand All @@ -27,6 +57,7 @@
},
"devDependencies": {
"@playwright/test": "^1.50.0",
"@release-it/keep-a-changelog": "^7.0.0",
"@synthetixio/synpress": "^4.0.7",
"@synthetixio/synpress-cache": "^0.0.7",
"@synthetixio/synpress-tsconfig": "^0.0.8",
Expand All @@ -42,6 +73,7 @@
"playwright-bdd": "^8.1.0",
"prettier": "3.4.2",
"prettier-plugin-gherkin": "^3.1.1",
"release-it": "^19.0.1",
"typescript": "^5.7.2"
},
"dependencies": {
Expand Down
Loading