Fixes failing test

This commit is contained in:
Aaron Louie 2020-06-17 09:10:23 -04:00
parent 4f0eff203a
commit 8933908a9e
1 changed files with 3 additions and 6 deletions

View File

@ -7,13 +7,10 @@ describe('workspace-project App', () => {
page = new AppPage(); page = new AppPage();
}); });
it('should display fake sign-in screen', () => { it('should display home screen', () => {
page.navigateTo(); page.navigateTo();
expect(page.getText('h1')).toEqual('FAKE UVA NETBADGE SIGN IN (FOR TESTING ONLY)'); expect(page.getText('h1')).toEqual('Workflow Specifications');
}); expect(page.getRoute()).toEqual('/home');
it('should click sign-in and navigate to home screen', () => {
page.clickAndExpectRoute('#sign_in', '/home');
expect(page.getElements('app-workflow-spec-list').count()).toBeGreaterThan(0); expect(page.getElements('app-workflow-spec-list').count()).toBeGreaterThan(0);
expect(page.getElements('app-file-list').count()).toBeGreaterThan(0); expect(page.getElements('app-file-list').count()).toBeGreaterThan(0);
}); });