]>
Commit | Line | Data |
---|---|---|
e306af50 TL |
1 | import { HostsPageHelper } from './hosts.po'; |
2 | ||
3 | describe('Hosts page', () => { | |
4 | const hosts = new HostsPageHelper(); | |
5 | ||
6 | beforeEach(() => { | |
7 | cy.login(); | |
adb31ebb | 8 | Cypress.Cookies.preserveOnce('token'); |
e306af50 TL |
9 | hosts.navigateTo(); |
10 | }); | |
11 | ||
12 | describe('breadcrumb and tab tests', () => { | |
13 | it('should open and show breadcrumb', () => { | |
14 | hosts.expectBreadcrumbText('Hosts'); | |
15 | }); | |
16 | ||
17 | it('should show two tabs', () => { | |
18 | hosts.getTabsCount().should('eq', 2); | |
19 | }); | |
20 | ||
21 | it('should show hosts list tab at first', () => { | |
22 | hosts.getTabText(0).should('eq', 'Hosts List'); | |
23 | }); | |
24 | ||
25 | it('should show overall performance as a second tab', () => { | |
26 | hosts.getTabText(1).should('eq', 'Overall Performance'); | |
27 | }); | |
28 | }); | |
29 | ||
30 | describe('services link test', () => { | |
31 | it('should check at least one host is present', () => { | |
32 | hosts.check_for_host(); | |
33 | }); | |
34 | ||
35 | it('should check services link(s) work for first host', () => { | |
36 | hosts.check_services_links(); | |
37 | }); | |
38 | }); | |
39 | }); |