File tree 8 files changed +147
-1
lines changed
interfaces/BO/advancedParameters/security
pages/BO/advancedParameters/security
versions/develop/pages/BO/advancedParameters/security
8 files changed +147
-1
lines changed Original file line number Diff line number Diff line change @@ -267,6 +267,8 @@ export {default as boSearchPage} from '@pages/BO/shopParameters/search';
267
267
export { default as boSearchAliasPage } from '@pages/BO/shopParameters/search/alias' ;
268
268
export { default as boSearchAliasCreatePage } from '@pages/BO/shopParameters/search/alias/create' ;
269
269
export { default as boSecurityPage } from '@pages/BO/advancedParameters/security' ;
270
+ export { default as boEmployeeSessionsPage } from '@pages/BO/advancedParameters/security/employeeSessions' ;
271
+ export { default as boCustomerSessionsPage } from '@pages/BO/advancedParameters/security/customerSessions' ;
270
272
export { default as boShopParametersPage } from '@pages/BO/shopParameters/general' ;
271
273
export { default as boShoppingCartsPage } from '@pages/BO/orders/shoppingCarts' ;
272
274
export { default as boSqlManagerPage } from '@pages/BO/advancedParameters/database/sqlManager' ;
Original file line number Diff line number Diff line change
1
+ import { BOBasePagePageInterface } from '@interfaces/BO' ;
2
+ import { type Page } from '@playwright/test' ;
3
+
4
+ export interface BOCustomerSessionsPageInterface extends BOBasePagePageInterface {
5
+ readonly pageTitle : string ;
6
+
7
+ }
Original file line number Diff line number Diff line change
1
+ import { BOBasePagePageInterface } from '@interfaces/BO' ;
2
+ import { type Page } from '@playwright/test' ;
3
+
4
+ export interface BOEmployeeSessionsPageInterface extends BOBasePagePageInterface {
5
+ readonly pageTitle : string ;
6
+
7
+ }
Original file line number Diff line number Diff line change
1
+ import type { BOCustomerSessionsPageInterface } from '@interfaces/BO/advancedParameters/security/customerSessions' ;
2
+
3
+ /* eslint-disable global-require, @typescript-eslint/no-require-imports, @typescript-eslint/no-var-requires */
4
+ function requirePage ( ) : BOCustomerSessionsPageInterface {
5
+ return require ( '@versions/develop/pages/BO/advancedParameters/security/customerSessions' ) ;
6
+ }
7
+
8
+ /* eslint-enable global-require, @typescript-eslint/no-require-imports, @typescript-eslint/no-var-requires */
9
+
10
+ export default requirePage ( ) ;
Original file line number Diff line number Diff line change
1
+ import type { BOEmployeeSessionsPageInterface } from '@interfaces/BO/advancedParameters/security/employeeSessions/index' ;
2
+
3
+ /* eslint-disable global-require, @typescript-eslint/no-require-imports, @typescript-eslint/no-var-requires */
4
+ function requirePage ( ) : BOEmployeeSessionsPageInterface {
5
+ return require ( '@versions/develop/pages/BO/advancedParameters/security/employeeSessions/index' ) ;
6
+ }
7
+
8
+ /* eslint-enable global-require, @typescript-eslint/no-require-imports, @typescript-eslint/no-var-requires */
9
+
10
+ export default requirePage ( ) ;
Original file line number Diff line number Diff line change
1
+ import { type BOCustomerSessionsPageInterface } from '@interfaces/BO/advancedParameters/security/customerSessions' ;
2
+ import BOBasePage from '@pages/BO/BOBasePage' ;
3
+ import { type Page } from '@playwright/test' ;
4
+
5
+ /**
6
+ * Customer sessions page, contains functions that can be used on customer sessions page
7
+ * @class
8
+ * @extends BOBasePage
9
+ */
10
+ class BOCustomerSessionsPage extends BOBasePage implements BOCustomerSessionsPageInterface {
11
+ public readonly pageTitle : string ;
12
+
13
+ private readonly securityPage : string ;
14
+
15
+ private readonly employeeSessionsPage : string ;
16
+
17
+ /**
18
+ * @constructs
19
+ * Setting up texts and selectors to use on customer sessions page
20
+ */
21
+ constructor ( ) {
22
+ super ( ) ;
23
+
24
+ this . pageTitle = 'Customer sessions •' ;
25
+
26
+ // Header links
27
+ this . securityPage = '#subtab-AdminSecurity' ;
28
+ this . employeeSessionsPage = '#subtab-AdminSecuritySessionEmployee' ;
29
+ }
30
+
31
+ /*
32
+ Methods
33
+ */
34
+
35
+ // Tab methods
36
+ /**
37
+ * Go to Employee Sessions page
38
+ * @param page {Page} Browser tab
39
+ * @returns {Promise<void> }
40
+ */
41
+ async goToEmployeeSessionsPage ( page : Page ) : Promise < void > {
42
+ await this . clickAndWaitForURL ( page , this . employeeSessionsPage ) ;
43
+ }
44
+
45
+ /**
46
+ * Go back to Security tab
47
+ * @param page {Page} Browser tab
48
+ * @returns {Promise<void> }
49
+ */
50
+ async goToSecurityPage ( page : Page ) : Promise < void > {
51
+ await this . clickAndWaitForURL ( page , this . securityPage ) ;
52
+ }
53
+ }
54
+
55
+ module . exports = new BOCustomerSessionsPage ( ) ;
Original file line number Diff line number Diff line change
1
+ import { type BOEmployeeSessionsPageInterface } from '@interfaces/BO/advancedParameters/security/employeeSessions' ;
2
+ import BOBasePage from '@pages/BO/BOBasePage' ;
3
+ import { type Page } from '@playwright/test' ;
4
+
5
+ /**
6
+ * Employee sessions page, contains functions that can be used on employee sessions page
7
+ * @class
8
+ * @extends BOBasePage
9
+ */
10
+ class BOEmployeeSessionsPage extends BOBasePage implements BOEmployeeSessionsPageInterface {
11
+ public readonly pageTitle : string ;
12
+
13
+ private readonly customerSessionsPage : string ;
14
+
15
+ private readonly securityPage : string ;
16
+
17
+ /**
18
+ * @constructs
19
+ * Setting up texts and selectors to use on security page
20
+ */
21
+ constructor ( ) {
22
+ super ( ) ;
23
+
24
+ this . pageTitle = 'Employee sessions •' ;
25
+
26
+ // Header links
27
+ this . customerSessionsPage = '#subtab-AdminSecuritySessionCustomer' ;
28
+ this . securityPage = '#subtab-AdminSecurity' ;
29
+ }
30
+
31
+ /*
32
+ Methods
33
+ */
34
+
35
+ // Tab methods
36
+ /**
37
+ * Go to Customer Sessions page
38
+ * @param page {Page} Browser tab
39
+ * @returns {Promise<void> }
40
+ */
41
+ async goToCustomerSessionsPage ( page : Page ) : Promise < void > {
42
+ await this . clickAndWaitForURL ( page , this . customerSessionsPage ) ;
43
+ }
44
+
45
+ /**
46
+ * Go back to Security tab
47
+ * @param page {Page} Browser tab
48
+ * @returns {Promise<void> }
49
+ */
50
+ async goToSecurityPage ( page : Page ) : Promise < void > {
51
+ await this . clickAndWaitForURL ( page , this . securityPage ) ;
52
+ }
53
+ }
54
+
55
+ module . exports = new BOEmployeeSessionsPage ( ) ;
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ class BOSecurityPage extends BOBasePage implements BOSecurityPageInterface {
24
24
this . pageTitle = 'Security •' ;
25
25
26
26
// Header links
27
- this . customerSessionsPage = '#subtab-AdminSecuritySessionEmployee ' ;
27
+ this . customerSessionsPage = '#subtab-AdminSecuritySessionCustomer ' ;
28
28
this . employeeSessionsPage = '#subtab-AdminSecuritySessionEmployee' ;
29
29
}
30
30
You can’t perform that action at this time.
0 commit comments