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);
|
||||
|
||||
pageLoaded().then(function () {
|
||||
return visible(by.className('fa fa-plus'));
|
||||
return visible(by.className('fa-plus'));
|
||||
}).then(function () {
|
||||
return browser.findElement(by.className('fa fa-plus')).click();
|
||||
return browser.findElement(by.className('fa-plus')).click();
|
||||
}).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 () {
|
||||
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 () {
|
||||
return visible(by.xpath('//*[@class="modal-body"]/form/div/input'));
|
||||
}).then(function () {
|
||||
|
|
Loading…
Reference in New Issue