Add proper expect to download button
This commit is contained in:
@@ -88,7 +88,8 @@ test.describe('Packages', () => {
|
|||||||
|
|
||||||
// Navigate pack to packages and Assert the file is created
|
// Navigate pack to packages and Assert the file is created
|
||||||
// Waits until the button download is visible
|
// 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
|
// Checks if the packages was created
|
||||||
const doesExist = await umbracoApi.packages.doesNameExist(packageName);
|
const doesExist = await umbracoApi.packages.doesNameExist(packageName);
|
||||||
await expect(doesExist).toBe(true);
|
await expect(doesExist).toBe(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user