Initial OpenECOMP Portal commit
[portal.git] / ecomp-portal-FE / e2e / main / main.spec.js
diff --git a/ecomp-portal-FE/e2e/main/main.spec.js b/ecomp-portal-FE/e2e/main/main.spec.js
new file mode 100644 (file)
index 0000000..61745a8
--- /dev/null
@@ -0,0 +1,16 @@
+'use strict';
+
+describe('Main View', function() {
+  var page;
+
+  beforeEach(function() {
+    browser.get('/');
+    page = require('./main.po');
+  });
+
+  it('should include jumbotron with correct data', function() {
+    expect(page.h1El.getText()).toBe('\'Allo, \'Allo!');
+    expect(page.imgEl.getAttribute('src')).toMatch(/assets\/images\/yeoman.png$/);
+    expect(page.imgEl.getAttribute('alt')).toBe('I\'m Yeoman');
+  });
+});