From bdb859899774bf36502001fe2856ea2b6d7d5ec0 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Mon, 1 Feb 2016 13:07:49 -0800 Subject: [PATCH] click the ssh button for checking the ssh url --- test/test.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test.js b/test/test.js index 4b0d4b0..a8de582 100755 --- a/test/test.js +++ b/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();