mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2024-12-19 13:07:52 +00:00
commit
142c996420
@ -7,8 +7,8 @@ describe('gns3-web-ui App', () => {
|
||||
page = new Gns3WebUiPage();
|
||||
});
|
||||
|
||||
it('should display welcome message', () => {
|
||||
it('should display title', () => {
|
||||
page.navigateTo();
|
||||
expect(page.getParagraphText()).toEqual('Welcome to app!');
|
||||
expect(page.getTitleText()).toEqual('GNS3 Web UI Demo');
|
||||
});
|
||||
});
|
||||
|
@ -5,6 +5,10 @@ export class Gns3WebUiPage {
|
||||
return browser.get('/');
|
||||
}
|
||||
|
||||
getTitleText() {
|
||||
return browser.getTitle();
|
||||
}
|
||||
|
||||
getParagraphText() {
|
||||
return element(by.css('app-root h1')).getText();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user