I am having a problem with my Protractor script. When i run each of the awaits i need them to have completed before the next one has started. Some of the functions being run take time to complete (upto 60 seconds). The problem is not the awaits seem to be waiting for the previous one to complete before running themselves. Does anyone have any ideas? Much appreciated!
*The webpage used in the code is a dummy one as the one i am using is locally held and wouldn't show for anyone trying this
describe('Verify title in the webpage', function () {
// ############### Environment Setup ####################
it('Verify title of Test webpage', async function (done) {
await fileLink.invokeJetState("Idle", browser.params.printerName) // ("Desired JetState", Printer IP/Name)
await fileLink.invokeError("7", browser.params.printerName) // ("Index_No", Printer IP/Name)
await browser.get('https://www.webpagetest.org/'); //Launch Browser and load webpage
// Verify correct data is held within title bar
await expect(browser.getTitle()).toBe('Application 1');
done();
await fileLink.invokeReboot(browser.params.printerName)
});
});