forked from kevadesu/forgejo
parent
2626f4ee3b
commit
02f8fad54d
2 changed files with 5 additions and 1 deletions
|
@ -49,6 +49,10 @@ test('External Release Attachments', async ({browser, isMobile}, workerInfo) =>
|
|||
// Validate release page and click edit
|
||||
await expect(page).toHaveURL('/user2/repo2/releases');
|
||||
await expect(page.locator('.download[open] li')).toHaveCount(3);
|
||||
await expect(page.locator('.download[open] li:nth-of-type(1)')).toContainText('Source code (ZIP)');
|
||||
await expect(page.locator('.download[open] li:nth-of-type(1) a')).toHaveAttribute('href', '/user2/repo2/archive/2.0.zip');
|
||||
await expect(page.locator('.download[open] li:nth-of-type(2)')).toContainText('Source code (TAR.GZ)');
|
||||
await expect(page.locator('.download[open] li:nth-of-type(2) a')).toHaveAttribute('href', '/user2/repo2/archive/2.0.tar.gz');
|
||||
await expect(page.locator('.download[open] li:nth-of-type(3)')).toContainText('Test');
|
||||
await expect(page.locator('.download[open] li:nth-of-type(3) a')).toHaveAttribute('href', 'https://forgejo.org/');
|
||||
save_visual(page);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue