|
@@ -138,12 +138,12 @@ describe('Application life cycle test', function () {
|
|
|
|
|
|
function uploadImage(done) {
|
|
|
browser.get('https://' + app.fqdn + '/user/admin/edit').then(function () {
|
|
|
- return browser.wait(until.elementLocated(by.xpath('//a[text()="Change Picture"]')), TEST_TIMEOUT);
|
|
|
+ return browser.sleep(4000);
|
|
|
}).then(function () {
|
|
|
var button = browser.findElement(by.xpath('//a[text()="Change Picture"]'));
|
|
|
return browser.executeScript('arguments[0].scrollIntoView(false)', button);
|
|
|
}).then(function () {
|
|
|
- return browser.findElement(by.xpath('//a[text()="Change Picture"]')).click();
|
|
|
+ return browser.findElement(by.id('changePictureBtn')).click();
|
|
|
}).then(function () {
|
|
|
return browser.sleep(10000);
|
|
|
}).then(function () {
|