Chartjs-Angular protractor tests timeout on pages containing Chart.js

0๐Ÿ‘

โœ…

I needed to add the following two lines to the e2e test. Iโ€™m not yet quite sure why it works, but it does. ignoreSynchronization also seems to be deprecated, so noting that too.

 it('should display menu bar', () => {
     browser.sleep(5000);                     //added
     browser.ignoreSynchronization = true;    //added 
     expect(browser.getCurrentUrl()).toEqual(`${URL}/admin/dashboard`);
   });

Leave a comment