]>
Commit | Line | Data |
---|---|---|
9f95a23c TL |
1 | import { DaemonsPageHelper } from './daemons.po'; |
2 | ||
3 | describe('RGW daemons page', () => { | |
4 | let daemons: DaemonsPageHelper; | |
5 | ||
6 | beforeAll(() => { | |
7 | daemons = new DaemonsPageHelper(); | |
8 | }); | |
9 | ||
10 | afterEach(async () => { | |
11 | await DaemonsPageHelper.checkConsole(); | |
12 | }); | |
13 | ||
14 | describe('breadcrumb and tab tests', () => { | |
15 | beforeAll(async () => { | |
16 | await daemons.navigateTo(); | |
17 | }); | |
18 | ||
19 | it('should open and show breadcrumb', async () => { | |
20 | await daemons.waitTextToBePresent(daemons.getBreadcrumb(), 'Daemons'); | |
21 | }); | |
22 | ||
23 | it('should show two tabs', async () => { | |
24 | await expect(daemons.getTabsCount()).toEqual(2); | |
25 | }); | |
26 | ||
27 | it('should show daemons list tab at first', async () => { | |
28 | await expect(daemons.getTabText(0)).toEqual('Daemons List'); | |
29 | }); | |
30 | ||
31 | it('should show overall performance as a second tab', async () => { | |
32 | await expect(daemons.getTabText(1)).toEqual('Overall Performance'); | |
33 | }); | |
34 | }); | |
35 | ||
36 | describe('details and performance counters table tests', () => { | |
37 | beforeAll(async () => { | |
38 | await daemons.navigateTo(); | |
39 | }); | |
40 | ||
41 | it('should check that details/performance tables are visible when daemon is selected', async () => { | |
42 | await daemons.checkTables(); | |
43 | }); | |
44 | }); | |
45 | }); |