Fix tests

This commit is contained in:
Girish Ramakrishnan 2019-02-03 15:55:19 -08:00
parent 067a7c1c02
commit c124139059
1 changed files with 6 additions and 4 deletions

View File

@ -153,8 +153,10 @@ describe('Application life cycle test', function () {
}
function checkApiConfiguration(callback) {
browser.get(`${baseUrl()}/api/greader.php/check%2Fcompatibility`).then(function () {
return exists(by.xpath('//pre[text()="PASS"]'));
browser.get(`${baseUrl()}/api/`).then(function () {
return exists(by.xpath('//dd[@id="greaderOutput" and contains(text(), "PASS")]'));
}).then(function () {
return exists(by.xpath('//dd[@id="feverOutput" and contains(text(), "PASS")]'));
}).then(function () {
callback();
});
@ -242,7 +244,7 @@ describe('Application life cycle test', function () {
});
it('can get app information', getAppInfo);
it('can login', login.bind(null, 'password'));
it('can login', login.bind(null, password));
it('can subscribe', addSubscription);
it('can add users', addUser.bind(null, password));
@ -253,7 +255,7 @@ describe('Application life cycle test', function () {
expect(app).to.be.an('object');
});
it('can login', login.bind(null, 'password'));
it('can login', login.bind(null, password));
it('subscription exists', subscriptionExists);
it('can get static extension file', getStaticExtensionFile);