mirror of
https://git.cloudron.io/cloudron/freshrss-app
synced 2025-09-02 05:15:12 +00:00
Fix tests
This commit is contained in:
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);
|
||||
|
||||
|
Reference in New Issue
Block a user