From 9b2ceb347a3371819fcad6bbe2268203afecaf4e Mon Sep 17 00:00:00 2001 From: "Stone, Avi (as206k)" Date: Thu, 12 Apr 2018 16:36:39 +0300 Subject: DCAE-D fe initial commit DCAE-D fe initial commit Change-Id: Ica8ccb7c7ef769c969664d1e168d205eb9fc67f2 Issue-ID: SDC-1218 Signed-off-by: Stone, Avi (as206k) --- public/e2e/app.e2e-spec.ts | 14 ++++++++++++++ public/e2e/app.po.ts | 11 +++++++++++ public/e2e/tsconfig.e2e.json | 14 ++++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 public/e2e/app.e2e-spec.ts create mode 100644 public/e2e/app.po.ts create mode 100644 public/e2e/tsconfig.e2e.json (limited to 'public/e2e') diff --git a/public/e2e/app.e2e-spec.ts b/public/e2e/app.e2e-spec.ts new file mode 100644 index 0000000..004463f --- /dev/null +++ b/public/e2e/app.e2e-spec.ts @@ -0,0 +1,14 @@ +import { AppPage } from './app.po'; + +describe('dcae-fe 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/public/e2e/app.po.ts b/public/e2e/app.po.ts new file mode 100644 index 0000000..82ea75b --- /dev/null +++ b/public/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/public/e2e/tsconfig.e2e.json b/public/e2e/tsconfig.e2e.json new file mode 100644 index 0000000..1d9e5ed --- /dev/null +++ b/public/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" + ] + } +} -- cgit 1.2.3-korg