summaryrefslogtreecommitdiffstats
path: root/rulemgt-frontend/e2e
diff options
context:
space:
mode:
Diffstat (limited to 'rulemgt-frontend/e2e')
-rw-r--r--rulemgt-frontend/e2e/app.e2e-spec.ts14
-rw-r--r--rulemgt-frontend/e2e/app.po.ts11
-rw-r--r--rulemgt-frontend/e2e/tsconfig.e2e.json14
3 files changed, 39 insertions, 0 deletions
diff --git a/rulemgt-frontend/e2e/app.e2e-spec.ts b/rulemgt-frontend/e2e/app.e2e-spec.ts
new file mode 100644
index 0000000..22f5841
--- /dev/null
+++ b/rulemgt-frontend/e2e/app.e2e-spec.ts
@@ -0,0 +1,14 @@
+import { AppPage } from './app.po';
+
+describe('frontend 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/rulemgt-frontend/e2e/app.po.ts b/rulemgt-frontend/e2e/app.po.ts
new file mode 100644
index 0000000..82ea75b
--- /dev/null
+++ b/rulemgt-frontend/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/rulemgt-frontend/e2e/tsconfig.e2e.json b/rulemgt-frontend/e2e/tsconfig.e2e.json
new file mode 100644
index 0000000..1d9e5ed
--- /dev/null
+++ b/rulemgt-frontend/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"
+ ]
+ }
+}