]>
Commit | Line | Data |
---|---|---|
9f95a23c | 1 | import { ManagerModulesPageHelper } from './mgr-modules.po'; |
11fdf7f2 TL |
2 | |
3 | describe('Manager modules page', () => { | |
9f95a23c | 4 | let mgrmodules: ManagerModulesPageHelper; |
11fdf7f2 TL |
5 | |
6 | beforeAll(() => { | |
9f95a23c | 7 | mgrmodules = new ManagerModulesPageHelper(); |
11fdf7f2 TL |
8 | }); |
9 | ||
9f95a23c TL |
10 | afterEach(async () => { |
11 | await ManagerModulesPageHelper.checkConsole(); | |
11fdf7f2 TL |
12 | }); |
13 | ||
14 | describe('breadcrumb test', () => { | |
9f95a23c TL |
15 | beforeAll(async () => { |
16 | await mgrmodules.navigateTo(); | |
11fdf7f2 TL |
17 | }); |
18 | ||
9f95a23c TL |
19 | it('should open and show breadcrumb', async () => { |
20 | await mgrmodules.waitTextToBePresent(mgrmodules.getBreadcrumb(), 'Manager modules'); | |
21 | }); | |
22 | }); | |
23 | ||
24 | describe('verifies editing functionality for manager modules', () => { | |
25 | beforeAll(async () => { | |
26 | await mgrmodules.navigateTo(); | |
27 | }); | |
28 | ||
29 | it('should test editing on diskprediction_local module', async () => { | |
801d1391 TL |
30 | const diskpredLocalArr = [ |
31 | ['11', 'predict_interval'], | |
32 | ['0122', 'sleep_interval'] | |
33 | ]; | |
9f95a23c TL |
34 | await mgrmodules.editMgrModule('diskprediction_local', diskpredLocalArr); |
35 | }); | |
36 | ||
37 | it('should test editing on balancer module', async () => { | |
38 | const balancerArr = [['rq', 'pool_ids']]; | |
39 | await mgrmodules.editMgrModule('balancer', balancerArr); | |
40 | }); | |
41 | ||
42 | it('should test editing on dashboard module', async () => { | |
801d1391 TL |
43 | const dashboardArr = [ |
44 | ['rq', 'RGW_API_USER_ID'], | |
45 | ['rafa', 'GRAFANA_API_PASSWORD'] | |
46 | ]; | |
9f95a23c TL |
47 | await mgrmodules.editMgrModule('dashboard', dashboardArr); |
48 | }); | |
49 | ||
50 | it('should test editing on devicehealth module', async () => { | |
51 | await mgrmodules.editDevicehealth('1987', 'sox', '1999', '2020', '456', '567'); | |
11fdf7f2 TL |
52 | }); |
53 | }); | |
54 | }); |