Skip to content

v3 #157

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

v3 #157

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
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,21 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how

:microscope: - experimental

## [3.0.0]
[Breaking Changes]
- :rocket: moved steps exports to `steps.js`
```typescript
export default {
require: [
'node_modules/@qavajs/steps-playwright/steps.js'
]
}
```
- :rocket: moved types and utils exports to `index.js`
```typescript
import { locator } from '@qavajs/steps-playwright';
```

## [2.7.0]
- :rocket: improved logging to show resolved selectors
- :beetle: added default interval to prevent 'not settled promise' error
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ npm install @qavajs/steps-playwright
import App from './page_object'
export default {
require: [
'node_modules/@qavajs/steps-playwright/index.js'
'node_modules/@qavajs/steps-playwright/steps.js'
],
browser: {
timeout: {
Expand Down
1 change: 0 additions & 1 deletion index.d.ts

This file was deleted.

15 changes: 0 additions & 15 deletions index.js

This file was deleted.

124 changes: 62 additions & 62 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 11 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
{
"name": "@qavajs/steps-playwright",
"version": "2.7.0",
"version": "3.0.0",
"description": "steps to interact with playwright",
"main": "./index.js",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
"exports": {
".": "./lib/index.js",
"./steps": "./lib/steps.js"
},
"scripts": {
"build": "tsc",
"test": "vitest --coverage run",
Expand Down Expand Up @@ -36,13 +41,13 @@
"@types/chai": "^5.2.2",
"@types/express": "^5.0.2",
"@types/node": "^22.15.29",
"@vitest/coverage-v8": "^3.2.0",
"@vitest/ui": "^3.2.0",
"electron": "^36.3.2",
"@vitest/coverage-v8": "^3.2.2",
"@vitest/ui": "^3.2.2",
"electron": "^36.4.0",
"express": "^5.1.0",
"ts-node": "^10.9.2",
"typescript": "^5.8.3",
"vitest": "^3.2.0"
"vitest": "^3.2.2"
},
"dependencies": {
"@playwright/test": "^1.52.0"
Expand Down
1 change: 0 additions & 1 deletion po.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion po.js

This file was deleted.

2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export type { IQavajsPlaywrightConfig } from './IQavajsPlaywrightConfig';
export { locator } from './pageObject';
15 changes: 15 additions & 0 deletions src/steps.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
export * from './types';
export * from './hooks'
export * from './actions'
export * from './waits'
export * from './validations'
export * from './memory'
export * from './execute'
export * from './intercept'
export * from './cookies'
export * from './localSessionStorage'
export * from './mock'
export * from './poDefine'
export * from './mouseActions'
export * from './keyboardActions'
export * from './dialog'
1 change: 1 addition & 0 deletions steps.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
exports = require('./lib/steps.js');
2 changes: 1 addition & 1 deletion test-e2e/page_object/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { locator } from '../../po';
import { locator } from '../../src';
import { Locator } from '@playwright/test';

export default class App {
Expand Down
Loading