mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2024-12-23 23:02:22 +00:00
commit
142c996420
@ -7,8 +7,8 @@ describe('gns3-web-ui App', () => {
|
|||||||
page = new Gns3WebUiPage();
|
page = new Gns3WebUiPage();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should display welcome message', () => {
|
it('should display title', () => {
|
||||||
page.navigateTo();
|
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('/');
|
return browser.get('/');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getTitleText() {
|
||||||
|
return browser.getTitle();
|
||||||
|
}
|
||||||
|
|
||||||
getParagraphText() {
|
getParagraphText() {
|
||||||
return element(by.css('app-root h1')).getText();
|
return element(by.css('app-root h1')).getText();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user