]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/e2e/cluster/hosts.e2e-spec.ts
d/control: depend on python3-yaml for ceph-mgr
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / e2e / cluster / hosts.e2e-spec.ts
1 import { HostsPageHelper } from './hosts.po';
2
3 describe('Hosts page', () => {
4 let hosts: HostsPageHelper;
5
6 beforeAll(() => {
7 hosts = new HostsPageHelper();
8 });
9
10 afterEach(async () => {
11 await HostsPageHelper.checkConsole();
12 });
13
14 describe('breadcrumb and tab tests', () => {
15 beforeAll(async () => {
16 await hosts.navigateTo();
17 });
18
19 it('should open and show breadcrumb', async () => {
20 await hosts.waitTextToBePresent(hosts.getBreadcrumb(), 'Hosts');
21 });
22
23 it('should show two tabs', async () => {
24 await expect(hosts.getTabsCount()).toEqual(2);
25 });
26
27 it('should show hosts list tab at first', async () => {
28 await expect(hosts.getTabText(0)).toEqual('Hosts List');
29 });
30
31 it('should show overall performance as a second tab', async () => {
32 await expect(hosts.getTabText(1)).toEqual('Overall Performance');
33 });
34 });
35
36 describe('services link test', () => {
37 it('should check at least one host is present', async () => {
38 await hosts.check_for_host();
39 });
40
41 it('should check services link(s) work for first host', async () => {
42 await hosts.check_services_links();
43 });
44 });
45 });