ソースを参照

login to load the dashboard

Girish Ramakrishnan 5 年 前
コミット
915cba816c
1 ファイル変更2 行追加2 行削除
  1. 2 2
      test/test.js

+ 2 - 2
test/test.js

@@ -38,7 +38,7 @@ describe('Application life cycle test', function () {
     var password = process.env.PASSWORD;
     var adminUsername = 'admin';
     var adminPassword = 'changeme';
-    var TIMEOUT = parseInt(process.env.TIMEOUT, 10) || 5000;
+    var TIMEOUT = parseInt(process.env.TIMEOUT, 10) || 20000;
     var email, token;
 
     before(function (done) {
@@ -363,8 +363,8 @@ describe('Application life cycle test', function () {
         execSync('cloudron install --wait --app ' + LOCATION, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
     });
 
-    it('can login', login.bind(null, username, password));
     it('can see updated post', checkPost);
+    it('can login', login.bind(null, username, password));
     it('is an admin dashboard', function (done) {
         browser.wait(until.elementLocated(by.xpath('//div[@class="wp-menu-name" and contains(text(), "Plugins")]')), TIMEOUT).then(function () { done(); });
     });