Преглед изворни кода

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) {
         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 () {
@@ -140,7 +140,7 @@ describe('Application life cycle test SSO', function () {
     it('user story exists', userStoryExists);
 
     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 () {