mirror of
https://git.cloudron.io/cloudron/gitea-app
synced 2026-04-24 03:34: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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user