Add proper expect to download button

This commit is contained in:
Nikolaj Geisle
2022-10-14 09:51:45 +02:00
parent a20a44c0c2
commit 4d4999b078

View File

@@ -88,7 +88,8 @@ test.describe('Packages', () => {
// Navigate pack to packages and Assert the file is created
// Waits until the button download is visible
await page.locator('[label-key="general_download"]').isVisible();
await expect(await page.locator('[label-key="general_download"]')).toBeVisible({timeout: 60000});
// Checks if the packages was created
const doesExist = await umbracoApi.packages.doesNameExist(packageName);
await expect(doesExist).toBe(true);