Skip to content

Commit 564e9eb

Browse files
Ignore hierarchy (#22)
* updated cli to 0.0.17 * updated po dependency to support ignoreHierarchy options
1 parent 9b0c9df commit 564e9eb

File tree

6 files changed

+28
-12
lines changed

6 files changed

+28
-12
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
## Current
1+
## 0.0.9
22
- :rocket: added scroll by offset steps
3+
- :rocket: updated po dependency to support ignoreHierarchy options
34

45
## 0.0.8
56
- :beetle: fixed issue that opens page from browser, not from context

package-lock.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@qavajs/steps-playwright",
3-
"version": "0.0.8",
3+
"version": "0.0.9",
44
"description": "steps to interact with playwright",
55
"main": "./index.js",
66
"scripts": {
@@ -36,7 +36,7 @@
3636
},
3737
"dependencies": {
3838
"@playwright/test": "^1.29.2",
39-
"@qavajs/po-playwright": "^0.0.4",
39+
"@qavajs/po-playwright": "^0.0.5",
4040
"@qavajs/validation": "^0.0.2",
4141
"playwright": "^1.29.2"
4242
}

test-e2e/apps/actions.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@
4343
</ul>
4444
</div>
4545

46+
<div id="ignoreHierarchyComponent"></div>
47+
4648
<script>
4749
const action = document.querySelector('#action');
4850
const button = document.querySelector('#button');

test-e2e/features/actions.feature

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,7 @@ Feature: actions
8080
And I execute 'document.querySelector("#overflowContainer").scrollTop' function and save result as 'scrollY'
8181
Then I expect '$scrollX' memory value to be equal '$number(0)'
8282
Then I expect '$scrollY' memory value to be equal '$number(50)'
83+
84+
Scenario: type in ignore hierarchy component
85+
When I type 'test value' to 'IgnoreHierarchyComponent > Input'
86+
Then I expect text of 'Action' to be equal 'test value'

test-e2e/page_object/index.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,13 @@ export default class App {
2626

2727
Users = $$('#users > li');
2828
OverflowContainer = $('#overflowContainer');
29+
30+
IgnoreHierarchyComponent = $(new IgnoreHierarchyComponent());
31+
32+
}
33+
34+
class IgnoreHierarchyComponent {
35+
selector = '#ignoreHierarchyComponent';
36+
37+
Input = $('#input', { ignoreHierarchy: true });
2938
}

0 commit comments

Comments
 (0)