summaryrefslogtreecommitdiffstats
path: root/js-old/tests/e2e/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'js-old/tests/e2e/main.js')
-rw-r--r--js-old/tests/e2e/main.js34
1 files changed, 34 insertions, 0 deletions
diff --git a/js-old/tests/e2e/main.js b/js-old/tests/e2e/main.js
new file mode 100644
index 000000000..fa79ad96b
--- /dev/null
+++ b/js-old/tests/e2e/main.js
@@ -0,0 +1,34 @@
+/**
+ * Nextcloud - News
+ *
+ * This file is licensed under the Affero General Public License version 3 or
+ * later. See the COPYING file.
+ *
+ * @author Bernhard Posselt <dev@bernhard-posselt.com>
+ * @copyright Bernhard Posselt 2012, 2014
+ */
+describe('news page', function () {
+ 'use strict';
+
+ beforeEach(function () {
+ browser.ignoreSynchronization = true;
+ browser.waitForAngular();
+ });
+
+ it('should go to the news page', function () {
+ browser.getTitle().then(function (title) {
+ expect(title).toContain('News');
+ });
+ });
+
+
+ it('should show the first run page', function () {
+ //var firstRun = browser.findElement(By.id('first-run'));
+ //firstRun.findElement(By.tagName('h1')).then(function (greeting) {
+ //expect(greeting.getText()).toBe('Welcome to the ownCloud News app!');
+ //});
+
+ //expect(firstRun.isDisplayed()).toBe(true);
+ });
+
+}); \ No newline at end of file