forked from cloudron-apps/gitea-app
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() {
|
||||
await browser.get(`https://${app.fqdn}/${username}`);
|
||||
|
||||
let avatarSrc;
|
||||
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 avatarSrc = await browser.findElement(By.xpath('//div[@id="profile-avatar"]/a/img')).getAttribute('src');
|
||||
|
||||
const response = await superagent.get(avatarSrc);
|
||||
expect(response.statusCode).to.equal(200);
|
||||
|
|
Loading…
Reference in a new issue