mirror of
https://git.cloudron.io/cloudron/gitea-app.git
synced 2024-11-22 08:01:01 +00:00
Fixup test
This commit is contained in:
parent
7261adc546
commit
a2d2edabaf
1 changed files with 1 additions and 6 deletions
|
@ -75,12 +75,7 @@ describe('Application life cycle test', function () {
|
||||||
async function checkAvatar() {
|
async function checkAvatar() {
|
||||||
await browser.get(`https://${app.fqdn}/${username}`);
|
await browser.get(`https://${app.fqdn}/${username}`);
|
||||||
|
|
||||||
let avatarSrc;
|
const avatarSrc = await browser.findElement(By.xpath('//div[@id="profile-avatar"]/a/img')).getAttribute('src');
|
||||||
if (app.manifest.version === '1.24.0') {
|
|
||||||
avatarSrc = await browser.findElement(By.xpath('//div[@id="profile-avatar"]/a/img')).getAttribute('src');
|
|
||||||
} else {
|
|
||||||
avatarSrc = await browser.findElement(By.xpath('//a[@id="profile-avatar"]/img')).getAttribute('src');
|
|
||||||
}
|
|
||||||
|
|
||||||
const response = await superagent.get(avatarSrc);
|
const response = await superagent.get(avatarSrc);
|
||||||
expect(response.statusCode).to.equal(200);
|
expect(response.statusCode).to.equal(200);
|
||||||
|
|
Loading…
Reference in a new issue