Commit d8645192 authored by Johannes Zellner's avatar Johannes Zellner

Fix tests

parent 6679de2e
......@@ -133,24 +133,6 @@ describe('Application life cycle test', function () {
});
}
function closeWizardOld(callback) {
browser.get(`https://${app.fqdn}`).then(function () {
return waitForElement(By.xpath('//a[contains(@class, "icon-close")]'));
}).then(function () {
var button = browser.findElement(By.xpath('//a[contains(@class, "icon-close")]'));
return browser.executeScript('arguments[0].scrollIntoView(false)', button);
}).then(function () {
return browser.findElement(By.xpath('//a[contains(@class, "icon-close")]')).click();
}).then(function () {
return waitForElement(By.id('filestable'));
}).then(function () {
// give it some time to save
return browser.sleep(20000);
}).then(function () {
callback();
});
}
function listUsers(callback) {
browser.get(`https://${app.fqdn}/settings/users`).then(function () {
// should see admin user
......@@ -298,7 +280,7 @@ describe('Application life cycle test', function () {
it('can upload file', uploadFile);
it('can download previously uploaded file', testFileDownload);
it('can admin login', login.bind(null, adminUser, adminPassword));
it('can close the wizard', closeWizardOld);
it('can close the wizard', closeWizard);
it('can enable contacts app', enableContacts);
it('can add contact', addContact);
it('can get contact', getContact);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment