瀏覽代碼

Fix the tests to suit the new version

Johannes 8 年之前
父節點
當前提交
e9671b8c3e
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      test/test.js

+ 2 - 2
test/test.js

@@ -70,7 +70,7 @@ describe('Application life cycle test SSO', function () {
     function userStoryExists(callback) {
     function userStoryExists(callback) {
         browser.get('https://' + app.fqdn + '/project/' + process.env.USERNAME + '-' + PROJECT_NAME + '/us/1');
         browser.get('https://' + app.fqdn + '/project/' + process.env.USERNAME + '-' + PROJECT_NAME + '/us/1');
 
 
-        waitForElement(by.xpath('//div[text()[contains(., "' + USER_STORY_SUBJECT + '")]]'), callback);
+        waitForElement(by.xpath('//span[text()="' + USER_STORY_SUBJECT + '"]'), callback);
     }
     }
 
 
     xit('build app', function () {
     xit('build app', function () {
@@ -140,7 +140,7 @@ describe('Application life cycle test SSO', function () {
     it('user story exists', userStoryExists);
     it('user story exists', userStoryExists);
 
 
     it('backup app', function () {
     it('backup app', function () {
-        execSync('cloudron backup --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
+        execSync('cloudron backup create --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
     });
     });
 
 
     it('restore app', function () {
     it('restore app', function () {