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
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## Current
## 0.0.9
- :rocket: added scroll by offset steps
- :rocket: updated po dependency to support ignoreHierarchy options

## 0.0.8
- :beetle: fixed issue that opens page from browser, not from context
Expand Down
98 changes: 49 additions & 49 deletions package-lock.json

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

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "@qavajs/steps-playwright",
"version": "0.0.8",
"version": "0.0.9",
"description": "steps to interact with playwright",
"main": "./index.js",
"scripts": {
"build": "tsc",
"test": "jest --coverage",
"test:e2e": "ts-node node_modules/.bin/qavajs run --config test-e2e/webui.ts",
"debug:e2e": "ts-node node_modules/.bin/qavajs run --config test-e2e/webui.ts --profile debug"
"test:e2e": "ts-node --esm --project tsconfig.json node_modules/@qavajs/cli/bin/qavajs.js run --config test-e2e/webui.ts",
"debug:e2e": "ts-node --esm --project tsconfig.json node_modules/@qavajs/cli/bin/qavajs.js run --config test-e2e/webui.ts --profile debug"
},
"repository": {
"type": "git",
Expand All @@ -23,20 +23,20 @@
"homepage": "https://github.com/qavajs/steps-playwright#readme",
"devDependencies": {
"@cucumber/cucumber": "^8.10.0",
"@qavajs/cli": "^0.0.15",
"@qavajs/cli": "^0.0.17",
"@qavajs/memory": "^1.1.1",
"@qavajs/webstorm-adapter": "^8.0.0",
"@qavajs/xunit-formatter": "^0.0.3",
"@types/chai": "^4.3.4",
"@types/jest": "^29.2.5",
"@types/jest": "^29.2.6",
"jest": "^29.3.1",
"ts-jest": "^29.0.3",
"ts-jest": "^29.0.5",
"ts-node": "^10.9.1",
"typescript": "^4.9.4"
},
"dependencies": {
"@playwright/test": "^1.29.2",
"@qavajs/po-playwright": "^0.0.4",
"@qavajs/po-playwright": "^0.0.5",
"@qavajs/validation": "^0.0.2",
"playwright": "^1.29.2"
}
Expand Down
2 changes: 2 additions & 0 deletions test-e2e/apps/actions.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
</ul>
</div>

<div id="ignoreHierarchyComponent"></div>

<script>
const action = document.querySelector('#action');
const button = document.querySelector('#button');
Expand Down
4 changes: 4 additions & 0 deletions test-e2e/features/actions.feature
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,7 @@ Feature: actions
And I execute 'document.querySelector("#overflowContainer").scrollTop' function and save result as 'scrollY'
Then I expect '$scrollX' memory value to be equal '$number(0)'
Then I expect '$scrollY' memory value to be equal '$number(50)'

Scenario: type in ignore hierarchy component
When I type 'test value' to 'IgnoreHierarchyComponent > Input'
Then I expect text of 'Action' to be equal 'test value'
9 changes: 9 additions & 0 deletions test-e2e/page_object/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,13 @@ export default class App {

Users = $$('#users > li');
OverflowContainer = $('#overflowContainer');

IgnoreHierarchyComponent = $(new IgnoreHierarchyComponent());

}

class IgnoreHierarchyComponent {
selector = '#ignoreHierarchyComponent';

Input = $('#input', { ignoreHierarchy: true });
}