Skip to content

Commit e0761be

Browse files
committed
fix more runner tests
1 parent 75a7f48 commit e0761be

File tree

1 file changed

+6
-6
lines changed
  • test/data/sandbox/configs/pageObjects/pages

1 file changed

+6
-6
lines changed

test/data/sandbox/configs/pageObjects/pages/my_page.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
let I
2-
31
const MyPage = {
42
_init() {
5-
I = actor()
3+
// Legacy method - not needed with inject pattern
64
},
75

86
hasFile(arg) {
9-
I.seeFile('codecept.class.js')
10-
I.seeFile('codecept.po.js')
7+
const { I } = inject();
8+
I.seeFile('codecept.class.js');
9+
I.seeFile('codecept.po.js');
1110
},
1211

1312
failedMethod() {
14-
I.seeFile('notexistfile.js')
13+
const { I } = inject();
14+
I.seeFile('notexistfile.js');
1515
},
1616
}
1717

0 commit comments

Comments
 (0)