Fix tests
This commit is contained in:
parent
f362df6f92
commit
0e8e1525d0
10
test/test.js
10
test/test.js
|
@ -96,13 +96,15 @@ describe('Application life cycle test', function () {
|
||||||
browser.get('https://' + app.fqdn);
|
browser.get('https://' + app.fqdn);
|
||||||
|
|
||||||
pageLoaded().then(function () {
|
pageLoaded().then(function () {
|
||||||
return visible(by.className('fa fa-plus'));
|
return visible(by.className('fa-plus'));
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
return browser.findElement(by.className('fa fa-plus')).click();
|
return browser.findElement(by.className('fa-plus')).click();
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
return visible(by.className('fa fa-hdd-o'));
|
const c = app.manifest.version === '1.75.0' ? 'fa-hdd' : 'fa-hdd-o';
|
||||||
|
return visible(by.className(c));
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
return browser.findElement(by.className('fa fa-hdd-o')).click();
|
const c = app.manifest.version === '1.75.0' ? 'fa-hdd' : 'fa-hdd-o';
|
||||||
|
return browser.findElement(by.className(c)).click();
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
return visible(by.xpath('//*[@class="modal-body"]/form/div/input'));
|
return visible(by.xpath('//*[@class="modal-body"]/form/div/input'));
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
|
|
Loading…
Reference in New Issue