mirror of
https://git.cloudron.io/cloudron/minio-app
synced 2025-09-02 15:25:07 +00:00
Version 1.138.0
This commit is contained in:
14
test/test.js
14
test/test.js
@@ -78,9 +78,17 @@ describe('Application life cycle test', function () {
|
||||
}).then(function () {
|
||||
return browser.findElement(by.id('top-right-menu')).click();
|
||||
}).then(function () {
|
||||
return visible(by.xpath('//*[text()="Sign Out "]'));
|
||||
if (app.manifest.version === '1.137.0') {
|
||||
return visible(by.xpath('//*[text()="Sign Out "]'));
|
||||
} else {
|
||||
return visible(by.xpath('//*[contains(text(), "Logout")]'));
|
||||
}
|
||||
}).then(function () {
|
||||
return browser.findElement(by.xpath('//*[text()="Sign Out "]')).click();
|
||||
if (app.manifest.version === '1.137.0') {
|
||||
return browser.findElement(by.xpath('//*[text()="Sign Out "]')).click();
|
||||
} else {
|
||||
return browser.findElement(by.xpath('//*[contains(text(),"Logout")]')).click();
|
||||
}
|
||||
}).then(function () {
|
||||
return browser.wait(until.elementLocated(by.id('accessKey')), TEST_TIMEOUT);
|
||||
}).then(function () {
|
||||
@@ -223,6 +231,8 @@ describe('Application life cycle test', function () {
|
||||
it('can logout', logout);
|
||||
it('can update', function () {
|
||||
execSync('cloudron update --app ' + LOCATION, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
||||
var inspect = JSON.parse(execSync('cloudron inspect'));
|
||||
app = inspect.apps.filter(function (a) { return a.location === LOCATION; })[0];
|
||||
});
|
||||
it('can login', login.bind(null, 'minioadmin', 'minioadmin'));
|
||||
it('has bucket', checkBucket);
|
||||
|
Reference in New Issue
Block a user