mirror of
				https://git.cloudron.io/cloudron/gitea-app
				synced 2025-11-04 00:52:35 +00:00 
			
		
		
		
	click the ssh button for checking the ssh url
This commit is contained in:
		@@ -113,6 +113,7 @@ describe('Application life cycle test', function () {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    it('displays correct clone url', function (done) {
 | 
					    it('displays correct clone url', function (done) {
 | 
				
			||||||
        browser.get('https://' + app.fqdn + '/' + username + '/' + reponame);
 | 
					        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) {
 | 
					        browser.findElement(by.id('repo-clone-url')).getAttribute('value').then(function (cloneUrl) {
 | 
				
			||||||
            expect(cloneUrl).to.be('ssh://cloudron@' + app.fqdn + ':29418/' + username + '/' + reponame + '.git');
 | 
					            expect(cloneUrl).to.be('ssh://cloudron@' + app.fqdn + ':29418/' + username + '/' + reponame + '.git');
 | 
				
			||||||
            done();
 | 
					            done();
 | 
				
			||||||
@@ -184,6 +185,7 @@ describe('Application life cycle test', function () {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    it('displays correct clone url', function (done) {
 | 
					    it('displays correct clone url', function (done) {
 | 
				
			||||||
        browser.get('https://' + app.fqdn + '/' + username + '/' + reponame);
 | 
					        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) {
 | 
					        browser.findElement(by.id('repo-clone-url')).getAttribute('value').then(function (cloneUrl) {
 | 
				
			||||||
            expect(cloneUrl).to.be('ssh://cloudron@' + app.fqdn + ':29418/' + username + '/' + reponame + '.git');
 | 
					            expect(cloneUrl).to.be('ssh://cloudron@' + app.fqdn + ':29418/' + username + '/' + reponame + '.git');
 | 
				
			||||||
            done();
 | 
					            done();
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user