1
0
mirror of https://git.cloudron.io/cloudron/gitea-app synced 2026-04-24 11:44:59 +00:00

test: fix @cloudron/superagent API compatibility

Replace .statusCode with .status, remove .agent() and .end()
usage to match @cloudron/superagent API.

Made-with: Cursor
This commit is contained in:
Girish Ramakrishnan
2026-04-15 16:54:55 +02:00
parent 14f1ea39ee
commit 6e29723b52

View File

@@ -87,7 +87,7 @@ describe('Application life cycle test', function () {
const avatarSrc = await browser.findElement(By.xpath('//div[@id="profile-avatar"]/a/img')).getAttribute('src');
const response = await superagent.get(avatarSrc);
assert.strictEqual(response.statusCode, 200);
assert.strictEqual(response.status, 200);
}
async function login(username, password) {