TwoToc code
[YouAndWeb_TwoToc] / e2e / main / main.spec.js
diff --git a/e2e/main/main.spec.js b/e2e/main/main.spec.js
new file mode 100755 (executable)
index 0000000..5728449
--- /dev/null
@@ -0,0 +1,18 @@
+'use strict';
+
+var config = browser.params;
+
+describe('Main View', function() {
+  var page;
+
+  beforeEach(function() {
+    browser.get(config.baseUrl + '/');
+    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(/yeoman.png$/);
+    expect(page.imgEl.getAttribute('alt')).toBe('I\'m Yeoman');
+  });
+});