diff --git a/e2e/portfolio.spec.ts b/e2e/portfolio.spec.ts index 631daba3f77..965adc42790 100644 --- a/e2e/portfolio.spec.ts +++ b/e2e/portfolio.spec.ts @@ -24,9 +24,15 @@ test.describe('Add Portfolio Item', () => { await page.getByRole('button', { name: 'Edit my profile' }).click(); - await page - .getByRole('button', { name: 'Add a new portfolio Item' }) - .click(); + // Will check if the portfolio button is hydrated correctly with different intervals. + await expect(async () => { + const addPortfolioItemButton = page.getByRole('button', { + name: 'Add a new portfolio Item' + }); + await addPortfolioItemButton.click(); + + await expect(addPortfolioItemButton).toBeDisabled({ timeout: 1 }); + }).toPass(); }); test('The title has validation', async ({ page }) => {