소스 검색

click the ssh button for checking the ssh url

Girish Ramakrishnan 9 년 전
부모
커밋
bdb8598997
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      test/test.js

+ 2 - 0
test/test.js

@@ -113,6 +113,7 @@ describe('Application life cycle test', function () {
 
     it('displays correct clone url', function (done) {
         browser.get('https://' + app.fqdn + '/' + username + '/' + reponame);
+        browser.findElement(by.id('repo-clone-ssh')).click();
         browser.findElement(by.id('repo-clone-url')).getAttribute('value').then(function (cloneUrl) {
             expect(cloneUrl).to.be('ssh://cloudron@' + app.fqdn + ':29418/' + username + '/' + reponame + '.git');
             done();
@@ -184,6 +185,7 @@ describe('Application life cycle test', function () {
 
     it('displays correct clone url', function (done) {
         browser.get('https://' + app.fqdn + '/' + username + '/' + reponame);
+        browser.findElement(by.id('repo-clone-ssh')).click();
         browser.findElement(by.id('repo-clone-url')).getAttribute('value').then(function (cloneUrl) {
             expect(cloneUrl).to.be('ssh://cloudron@' + app.fqdn + ':29418/' + username + '/' + reponame + '.git');
             done();