Jelajahi Sumber

Fixup the tests

Johannes Zellner 7 tahun lalu
induk
melakukan
7b1a737270
1 mengubah file dengan 1 tambahan dan 19 penghapusan
  1. 1 19
      test/test.js

+ 1 - 19
test/test.js

@@ -95,24 +95,6 @@ describe('Application life cycle test SSO', function () {
         });
     }
 
-    function adminLoginOld(callback) {
-        browser.get('https://' + app.fqdn + '/admin').then(function () {
-            return browser.findElement(by.name('username')).sendKeys('admin');
-        }).then(function () {
-            return browser.findElement(by.name('password')).sendKeys('123123');
-        }).then(function () {
-            return browser.findElement(by.id('login-form')).submit();
-        }).then(function () {
-            return waitForElement(by.xpath('//h1[text()="Site administration"]'));
-        }).then(function () {
-            return browser.findElement(by.xpath('//a[text()="Log out"]')).click();
-        }).then(function () {
-            return browser.sleep(2000);
-        }).then(function () {
-            callback();
-        });
-    }
-
     function userStoryExists(callback) {
         browser.get('https://' + app.fqdn + '/project/' + process.env.USERNAME + '-' + PROJECT_NAME + '/us/1').then(function () {
             return waitForElement(by.xpath('//span[text()="' + USER_STORY_SUBJECT + '"]'));
@@ -240,8 +222,8 @@ describe('Application life cycle test SSO', function () {
         execSync('cloudron install --new --wait --appstore-id ' + app.manifest.id + ' --location ' + LOCATION, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
     });
 
-    it('can admin login', adminLoginOld);
     it('can get app information', getAppInfo);
+    it('can admin login', adminLogin);
     it('can login', login);
     it('can dismiss tutorial', dismissTutorial);
     it('can create project', createProject);