mirror of
				https://git.cloudron.io/cloudron/gitea-app
				synced 2025-11-03 16:42:35 +00:00 
			
		
		
		
	Ensure we can submit the test file page
This commit is contained in:
		@@ -119,6 +119,10 @@ return done();
 | 
				
			|||||||
            return browser.executeScript('arguments[0].CodeMirror.setValue("' + text + '");', cm);
 | 
					            return browser.executeScript('arguments[0].CodeMirror.setValue("' + text + '");', cm);
 | 
				
			||||||
        }).then(function () {
 | 
					        }).then(function () {
 | 
				
			||||||
            return browser.findElement(By.xpath('//input[@name="commit_summary"]')).sendKeys('Dummy edit');
 | 
					            return browser.findElement(By.xpath('//input[@name="commit_summary"]')).sendKeys('Dummy edit');
 | 
				
			||||||
 | 
					        }).then(function () {
 | 
				
			||||||
 | 
					            // explicitly make the button clickable since CodeMirror.setValue() does not update the form state correctly
 | 
				
			||||||
 | 
					            var button = browser.findElement(By.xpath('//button[contains(text(), "Commit Changes")]'));
 | 
				
			||||||
 | 
					            return browser.executeScript('arguments[0].removeAttribute("disabled")', button);
 | 
				
			||||||
        }).then(function () {
 | 
					        }).then(function () {
 | 
				
			||||||
            return browser.findElement(By.xpath('//button[contains(text(), "Commit Changes")]')).click();
 | 
					            return browser.findElement(By.xpath('//button[contains(text(), "Commit Changes")]')).click();
 | 
				
			||||||
        }).then(function () {
 | 
					        }).then(function () {
 | 
				
			||||||
@@ -304,9 +308,7 @@ return done();
 | 
				
			|||||||
        });
 | 
					        });
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    it('install app', function () {
 | 
					    it('install app', function () { execSync(`cloudron install --location ${LOCATION} -p SSH_PORT=${SSH_PORT}`, EXEC_ARGS); });
 | 
				
			||||||
        execSync(`cloudron install --location ${LOCATION} -p SSH_PORT=${SSH_PORT}`, EXEC_ARGS);
 | 
					 | 
				
			||||||
    });
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    it('can get app information', getAppInfo);
 | 
					    it('can get app information', getAppInfo);
 | 
				
			||||||
    it('can get the main page', function (done) {
 | 
					    it('can get the main page', function (done) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user