1 import { HostsPageHelper } from './hosts.po';
3 describe('Hosts page', () => {
4 let hosts: HostsPageHelper;
7 hosts = new HostsPageHelper();
10 afterEach(async () => {
11 await HostsPageHelper.checkConsole();
14 describe('breadcrumb and tab tests', () => {
15 beforeAll(async () => {
16 await hosts.navigateTo();
19 it('should open and show breadcrumb', async () => {
20 await hosts.waitTextToBePresent(hosts.getBreadcrumb(), 'Hosts');
23 it('should show two tabs', async () => {
24 await expect(hosts.getTabsCount()).toEqual(2);
27 it('should show hosts list tab at first', async () => {
28 await expect(hosts.getTabText(0)).toEqual('Hosts List');
31 it('should show overall performance as a second tab', async () => {
32 await expect(hosts.getTabText(1)).toEqual('Overall Performance');
36 describe('services link test', () => {
37 it('should check at least one host is present', async () => {
38 await hosts.check_for_host();
41 it('should check services link(s) work for first host', async () => {
42 await hosts.check_services_links();