File tree 8 files changed +17
-12
lines changed
8 files changed +17
-12
lines changed Original file line number Diff line number Diff line change 1
- import { BOBasePagePageInterface } from " @interfaces/BO" ;
1
+ import { BOBasePagePageInterface } from ' @interfaces/BO' ;
2
2
3
3
export interface DashboardPageInterface extends BOBasePagePageInterface {
4
4
readonly pageTitle : string ;
Original file line number Diff line number Diff line change 1
- import type { CommonPageInterface } from " @interfaces/index" ;
2
- import type { Page } from " @playwright/test" ;
1
+ import type { CommonPageInterface } from ' @interfaces/index' ;
2
+ import type { Page } from ' @playwright/test' ;
3
3
4
4
export interface BOBasePagePageInterface extends CommonPageInterface {
5
5
logoutBO ( page : Page ) : Promise < void > ;
6
- }
6
+ }
Original file line number Diff line number Diff line change 1
- import { BOBasePagePageInterface } from " @interfaces/BO" ;
1
+ import { BOBasePagePageInterface } from ' @interfaces/BO' ;
2
2
3
3
import type { Page } from '@playwright/test' ;
4
4
5
-
6
5
export interface LoginPageInterface extends BOBasePagePageInterface {
7
6
readonly pageTitle : string ;
8
7
Original file line number Diff line number Diff line change 1
- import type { Page } from " @playwright/test" ;
1
+ import type { Page } from ' @playwright/test' ;
2
2
3
3
export interface CommonPageInterface {
4
4
getPageTitle ( page : Page ) : Promise < string > ;
5
5
6
6
goTo ( page : Page , url : string ) : Promise < void > ;
7
- }
7
+ }
Original file line number Diff line number Diff line change 1
- import type { DashboardPageInterface } from '@interfaces/BO/dashboard' ;
1
+ import type { DashboardPageInterface } from '@interfaces/BO/dashboard' ;
2
2
import semver from 'semver' ;
3
3
4
4
const psVersion = process . env . PS_VERSION ?? '0.0.0' ;
5
5
6
6
let dashboardPage : DashboardPageInterface ;
7
+
8
+ /* eslint-disable global-require */
7
9
if ( semver . gte ( psVersion , '8.0.0' ) ) {
8
10
dashboardPage = require ( '@versions/8.0.0/pages/BO/dashboard' ) ;
9
11
} else {
10
12
dashboardPage = require ( '@versions/8.0.0/pages/BO/dashboard' ) ;
11
13
}
14
+ /* eslint-enable global-require */
12
15
module . exports = dashboardPage ;
Original file line number Diff line number Diff line change 1
- import type { LoginPageInterface } from '@interfaces/BO/login' ;
1
+ import type { LoginPageInterface } from '@interfaces/BO/login' ;
2
2
import semver from 'semver' ;
3
3
4
4
const psVersion = process . env . PS_VERSION ?? '0.0.0' ;
5
5
6
6
let loginPage : LoginPageInterface ;
7
+
8
+ /* eslint-disable global-require */
7
9
if ( semver . gte ( psVersion , '8.0.0' ) ) {
8
10
loginPage = require ( '@versions/8.0.0/pages/BO/login' ) ;
9
11
} else {
10
12
loginPage = require ( '@versions/8.0.0/pages/BO/login' ) ;
11
13
}
14
+ /* eslint-enable global-require */
12
15
module . exports = loginPage ;
Original file line number Diff line number Diff line change @@ -625,4 +625,4 @@ class Dashboard extends BOBasePage implements DashboardPageInterface {
625
625
}
626
626
}
627
627
628
- module . exports = new Dashboard ( ) ;
628
+ module . exports = new Dashboard ( ) ;
Original file line number Diff line number Diff line change @@ -184,4 +184,4 @@ class Login extends BOBasePage implements LoginPageInterface {
184
184
}
185
185
}
186
186
187
- module . exports = new Login ( ) ;
187
+ module . exports = new Login ( ) ;
You can’t perform that action at this time.
0 commit comments