July 2018
Intermediate to advanced
420 pages
8h 46m
English
At this point, we are going to run the e2e tests, as we mentioned earlier in the chapter:
import { AppPage } from './app.po';
describe('workspace-project App', () => {
let page: AppPage;
beforeEach(() => {
page = new AppPage();
});
it('should display app title', () => {
page.navigateTo();
expect(page.getParagraphText()).toEqual('Custom Bikes Garage');
});
});
npm run e2e
The results of the preceding command will be similar to the following screenshot:

Remember, ...
Read now
Unlock full access