File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -96,16 +96,6 @@ function World() {
9696 global [ key ] = runtime [ key ] ;
9797 } ) ;
9898
99- // import page objects (after global vars have been created)
100- if ( global . pageObjectPath && fs . existsSync ( global . pageObjectPath ) ) {
101-
102- // require all page objects using camel case as object names
103- runtime . page = requireDir ( global . pageObjectPath , { camelcase : true } ) ;
104-
105- // expose globally
106- global . page = runtime . page ;
107- }
108-
10999 // import shared objects from multiple paths (after global vars have been created)
110100 if ( global . sharedObjectPaths && Array . isArray ( global . sharedObjectPaths ) && global . sharedObjectPaths . length > 0 ) {
111101
@@ -130,6 +120,16 @@ function World() {
130120 }
131121 }
132122
123+ // import page objects (after global vars have been created)
124+ if ( global . pageObjectPath && fs . existsSync ( global . pageObjectPath ) ) {
125+
126+ // require all page objects using camel case as object names
127+ runtime . page = requireDir ( global . pageObjectPath , { camelcase : true } ) ;
128+
129+ // expose globally
130+ global . page = runtime . page ;
131+ }
132+
133133 // add helpers
134134 global . helpers = require ( '../runtime/helpers.js' ) ;
135135}
You can’t perform that action at this time.
0 commit comments