Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
86 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
import {Cyph.WsPage} from './app.po'; | ||
import {CyphPage} from './app.po'; | ||
|
||
|
||
describe('cyph.com App', () => { | ||
let page: Cyph.WsPage; | ||
describe('cyph.com', () => { | ||
let page: CyphPage; | ||
|
||
beforeEach(() => { | ||
page = new Cyph.WsPage(); | ||
page = new CyphPage(); | ||
}); | ||
|
||
it('should display message saying app works', () => { | ||
it('should display footer', async () => { | ||
page.navigateTo(); | ||
expect(page.getParagraphText()).toEqual('app works!'); | ||
expect(await page.getParagraphText()).toEqual('© Cyph 2018'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
import {browser, element, by} from 'protractor'; | ||
|
||
|
||
export class Cyph.WsPage { | ||
public navigateTo () : void { | ||
export class CyphPage { | ||
public async navigateTo () : Promise<any> { | ||
await browser.waitForAngularEnabled(false); | ||
return browser.get('/'); | ||
} | ||
|
||
public getParagraphText () : void { | ||
return element(by.css('app-root h1')).getText(); | ||
public async getParagraphText () : Promise<string> { | ||
return element(by.css('footer > div > span:first-child')).getText(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
import {Cyph.WsPage} from './app.po'; | ||
import {CyphPage} from './app.po'; | ||
|
||
|
||
describe('cyph.ws App', () => { | ||
let page: Cyph.WsPage; | ||
describe('Cyph', () => { | ||
let page: CyphPage; | ||
|
||
beforeEach(() => { | ||
page = new Cyph.WsPage(); | ||
page = new CyphPage(); | ||
}); | ||
|
||
it('should display message saying app works', () => { | ||
it('should display footer', async () => { | ||
page.navigateTo(); | ||
expect(page.getParagraphText()).toEqual('app works!'); | ||
expect(await page.getParagraphText()).toEqual('© Cyph 2018'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
import {browser, element, by} from 'protractor'; | ||
|
||
|
||
export class Cyph.WsPage { | ||
public navigateTo () : void { | ||
export class CyphPage { | ||
public async navigateTo () : Promise<any> { | ||
await browser.waitForAngularEnabled(false); | ||
return browser.get('/'); | ||
} | ||
|
||
public getParagraphText () : void { | ||
return element(by.css('app-root h1')).getText(); | ||
public async getParagraphText () : Promise<string> { | ||
return element(by.css('cyph-footer a > span:first-child')).getText(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
shared/node_modules |