diff options
author | zhangab <zhanganbing@chinamobile.com> | 2018-10-23 11:32:03 +0800 |
---|---|---|
committer | zhangab <zhanganbing@chinamobile.com> | 2018-10-23 11:32:05 +0800 |
commit | de9d2e95b43991fccee342ebed03b006f6fed844 (patch) | |
tree | 0667c51a30fd3fed71fec797136d8adefc7d7baf /usecaseui-portal/e2e | |
parent | 101e5e37f4ece60af8d08020c7e4bd8f473adce7 (diff) |
Build AngularJs component for usecase-ui
Change-Id: I393f4837fc5f9cbd71448dbf20e1f1781f0656d3
Issue-ID: USECASEUI-154
Signed-off-by: zhangab <zhanganbing@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/e2e')
-rw-r--r-- | usecaseui-portal/e2e/app.e2e-spec.ts | 14 | ||||
-rw-r--r-- | usecaseui-portal/e2e/app.po.ts | 11 | ||||
-rw-r--r-- | usecaseui-portal/e2e/tsconfig.e2e.json | 14 |
3 files changed, 39 insertions, 0 deletions
diff --git a/usecaseui-portal/e2e/app.e2e-spec.ts b/usecaseui-portal/e2e/app.e2e-spec.ts new file mode 100644 index 00000000..2bd5c05c --- /dev/null +++ b/usecaseui-portal/e2e/app.e2e-spec.ts @@ -0,0 +1,14 @@ +import { AppPage } from './app.po'; + +describe('uui2 App', () => { + let page: AppPage; + + beforeEach(() => { + page = new AppPage(); + }); + + it('should display welcome message', () => { + page.navigateTo(); + expect(page.getParagraphText()).toEqual('Welcome to app!'); + }); +}); diff --git a/usecaseui-portal/e2e/app.po.ts b/usecaseui-portal/e2e/app.po.ts new file mode 100644 index 00000000..82ea75ba --- /dev/null +++ b/usecaseui-portal/e2e/app.po.ts @@ -0,0 +1,11 @@ +import { browser, by, element } from 'protractor'; + +export class AppPage { + navigateTo() { + return browser.get('/'); + } + + getParagraphText() { + return element(by.css('app-root h1')).getText(); + } +} diff --git a/usecaseui-portal/e2e/tsconfig.e2e.json b/usecaseui-portal/e2e/tsconfig.e2e.json new file mode 100644 index 00000000..1d9e5edf --- /dev/null +++ b/usecaseui-portal/e2e/tsconfig.e2e.json @@ -0,0 +1,14 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "outDir": "../out-tsc/e2e", + "baseUrl": "./", + "module": "commonjs", + "target": "es5", + "types": [ + "jasmine", + "jasminewd2", + "node" + ] + } +} |