I want to check if my app.component.htm
has the tag chart
html tag necessary to render my chartComponent
.
// app.e2e-spec.ts
import { AppPage } from './app.po';
import { by, element } from 'protractor';
describe('App', () => {
let page: AppPage;
beforeEach(() => {
page = new AppPage();
});
it('should have a chart element', () => {
page.navigateTo();
const elem = element(by.css('chart'));
expect(elem.isPresent()).toBeTruthy();
});
});
Then the component:
// app.component.html
<chart></chart>
Always fails with - Failed: script timeout: result was not received in 11 seconds
What is wrong with it? The chart
element rendered as expected in the browser.