diff options
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" + ] + } +} |