File tree Expand file tree Collapse file tree 11 files changed +30
-20
lines changed
Expand file tree Collapse file tree 11 files changed +30
-20
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @prestashop-core/ui-testing" ,
3- "version" : " 0.0.5 " ,
3+ "version" : " 0.0.6 " ,
44 "description" : " " ,
55 "main" : " dist/index.js" ,
66 "types" : " dist/index.d.ts" ,
Original file line number Diff line number Diff line change 11import type { DashboardPageInterface } from '@interfaces/BO/dashboard' ;
2+ import testContext from '@utils/testContext' ;
23import semver from 'semver' ;
34
4- const psVersion = global . getPSVersion ( ) ;
5+ const psVersion = testContext . getPSVersion ( ) ;
56
67/* eslint-disable global-require */
78function requirePage ( ) : DashboardPageInterface {
Original file line number Diff line number Diff line change 11import type { LoginPageInterface } from '@interfaces/BO/login' ;
2+ import testContext from '@utils/testContext' ;
23import semver from 'semver' ;
34
4- const psVersion = global . getPSVersion ( ) ;
5+ const psVersion = testContext . getPSVersion ( ) ;
56
67/* eslint-disable global-require */
78function requirePage ( ) : LoginPageInterface {
Original file line number Diff line number Diff line change 11import type { ModuleBlockwishlistMainPageInterface } from '@interfaces/BO/modules/blockwishlist/index' ;
2+ import testContext from '@utils/testContext' ;
23import semver from 'semver' ;
34
4- const psVersion = global . getPSVersion ( ) ;
5+ const psVersion = testContext . getPSVersion ( ) ;
56
67/* eslint-disable global-require */
78function requirePage ( ) : ModuleBlockwishlistMainPageInterface {
Original file line number Diff line number Diff line change 11import type { ModuleBlockwishlistStatisticsPageInterface } from '@interfaces/BO/modules/blockwishlist/statistics' ;
2+ import testContext from '@utils/testContext' ;
23import semver from 'semver' ;
34
4- const psVersion = global . getPSVersion ( ) ;
5+ const psVersion = testContext . getPSVersion ( ) ;
56
67/* eslint-disable global-require */
78function requirePage ( ) : ModuleBlockwishlistStatisticsPageInterface {
Original file line number Diff line number Diff line change 11import type { ModuleManagerPageInterface } from '@interfaces/BO/modules/moduleManager' ;
2+ import testContext from '@utils/testContext' ;
23import semver from 'semver' ;
34
4- const psVersion = global . getPSVersion ( ) ;
5+ const psVersion = testContext . getPSVersion ( ) ;
56
67/* eslint-disable global-require, @typescript-eslint/no-var-requires */
78function requirePage ( ) : ModuleManagerPageInterface {
Original file line number Diff line number Diff line change 11import type { FoCategoryPageInterface } from '@interfaces/FO/category' ;
2+ import testContext from '@utils/testContext' ;
23import semver from 'semver' ;
34
4- const psVersion = global . getPSVersion ( ) ;
5+ const psVersion = testContext . getPSVersion ( ) ;
56
67/* eslint-disable global-require */
78function requirePage ( ) : FoCategoryPageInterface {
Original file line number Diff line number Diff line change 11import type { FoHomePageInterface } from '@interfaces/FO/home' ;
2+ import testContext from '@utils/testContext' ;
23import semver from 'semver' ;
34
4- const psVersion = global . getPSVersion ( ) ;
5+ const psVersion = testContext . getPSVersion ( ) ;
56
67/* eslint-disable global-require, @typescript-eslint/no-var-requires */
78function requirePage ( ) : FoHomePageInterface {
Original file line number Diff line number Diff line change 11import type { FoLoginPageInterface } from '@interfaces/FO/login' ;
2+ import testContext from '@utils/testContext' ;
23import semver from 'semver' ;
34
4- const psVersion = global . getPSVersion ( ) ;
5+ const psVersion = testContext . getPSVersion ( ) ;
56
67/* eslint-disable global-require, @typescript-eslint/no-var-requires */
78function requirePage ( ) : FoLoginPageInterface {
Original file line number Diff line number Diff line change @@ -12,17 +12,6 @@ declare global {
1212 var maildevConfig : GlobalMaildevConfig ;
1313 var keycloakConfig : GlobalKeycloakConfig ;
1414 var browserErrors : GlobalBrowserErrors ;
15-
16- // eslint-disable-next-line no-inner-declarations
17- function getPSVersion ( ) : string {
18- if ( ! process . env . PS_VERSION ) {
19- return '0.0.0' ;
20- }
21- if ( process . env . PS_VERSION === 'nightly' ) {
22- return '99.99.99' ;
23- }
24- return process . env . PS_VERSION ;
25- }
2615}
2716
2817export { } ;
You can’t perform that action at this time.
0 commit comments