import AppHomePage from '../pages/v10/app-home.po.js'
import Routing from '../pages/routing.js'

describe('01.02.HomePage - Open Homepage and check elements', async() => {

  it('should open home page', async() => {
    browser.addTestMeta({
      uuid: "66ba19e0-b104-11ec-b909-0242ac120002", zephyrKey: "XXXX-999", zephyrStep: "9999991", reportGroups: ["GENERAL"],
      testedSystems: []
    });
    let homePage = new AppHomePage();
    await homePage.open(Routing.homeUrl);
    await expect(await homePage.euiAppCO.euiAppToolbarCO.element()).toBeDisplayed({ wait: 40000, message: 'EUI App toolbar did not appear' });
  }, 3);

  it('network log', async () => {
    browser.logPuppeteerNetwork();
  });
})
