import { browser, element, by } from 'protractor'; import {ClinicsPage} from '../clinics-page/clinics.po'; type result = any; let c = new ClinicsPage; describe ('Clinics Page', () => { it ('should open clinics', async () => { await browser.get('https://sprinthub-sandbox-staging.azureedge.net/app/main/laboratory/clinics'); await c.waitForItemToBeVisible(c.clinicsGrid); }); it ('should create new clinic', async () => { await c.createClinic(); await c.waitForItemToBeVisible(c.clinicsGrid); }); });