File tree Expand file tree Collapse file tree 6 files changed +15
-6
lines changed
Expand file tree Collapse file tree 6 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 11// Need for testing pages
2- module . exports = ( ) => {
2+ import { actor } from '../../../../../../lib/index.js' ;
3+
4+ export default ( ) => {
35 return actor ( {
46 openDir ( ) {
57 this . amInPath ( '.' ) ;
Original file line number Diff line number Diff line change 1- const { I } = inject ( )
2-
31class PageObject {
42 constructor ( ) {
53 this . method1 = ( ) => {
@@ -8,10 +6,12 @@ class PageObject {
86 }
97
108 async type ( s ) {
9+ const { I } = inject ( )
1110 await I . printMessage ( s )
1211 }
1312
1413 purgeDomains ( ) {
14+ const { I } = inject ( )
1515 I . printMessage ( 'purgeDomains' )
1616 }
1717}
Original file line number Diff line number Diff line change @@ -35,6 +35,9 @@ class CheckoutHelper extends Helper {
3535 }
3636
3737 addProduct ( name , price ) {
38+ if ( typeof this . num !== 'number' ) this . num = 0
39+ if ( typeof this . sum !== 'number' ) this . sum = 0
40+ this . num ++
3841 this . sum += price
3942 }
4043
Original file line number Diff line number Diff line change 1- module . exports = ( ) => {
1+ import { actor } from '../../../../lib/index.js' ;
2+
3+ export default ( ) => {
24 return actor ( {
35 openDir ( ) {
46 this . amInPath ( '.' ) ;
Original file line number Diff line number Diff line change 1+ import { actor } from '../../../../lib/index.js' ;
2+
13let I ;
24
3- module . exports = {
5+ export default {
46
57 _init ( ) {
68 I = actor ( ) ;
Original file line number Diff line number Diff line change 1- module . exports = {
1+ export default {
22 secondPageMethod ( ) {
33 console . log ( 'secondPageMethod' ) ;
44 } ,
You can’t perform that action at this time.
0 commit comments