]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/cypress/integration/cluster/hosts.e2e-spec.ts
import 15.2.4
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / cypress / integration / cluster / hosts.e2e-spec.ts
1 import { HostsPageHelper } from './hosts.po';
2
3 describe('Hosts page', () => {
4 const hosts = new HostsPageHelper();
5
6 beforeEach(() => {
7 cy.login();
8 hosts.navigateTo();
9 });
10
11 describe('breadcrumb and tab tests', () => {
12 it('should open and show breadcrumb', () => {
13 hosts.expectBreadcrumbText('Hosts');
14 });
15
16 it('should show two tabs', () => {
17 hosts.getTabsCount().should('eq', 2);
18 });
19
20 it('should show hosts list tab at first', () => {
21 hosts.getTabText(0).should('eq', 'Hosts List');
22 });
23
24 it('should show overall performance as a second tab', () => {
25 hosts.getTabText(1).should('eq', 'Overall Performance');
26 });
27 });
28
29 describe('services link test', () => {
30 it('should check at least one host is present', () => {
31 hosts.check_for_host();
32 });
33
34 it('should check services link(s) work for first host', () => {
35 hosts.check_services_links();
36 });
37 });
38 });