Fix tests
This commit is contained in:
parent
067a7c1c02
commit
c124139059
10
test/test.js
10
test/test.js
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue