diff --git a/web/crux-ui/e2e/with-login/deployment/deployment-copy.spec.ts b/web/crux-ui/e2e/with-login/deployment/deployment-copy.spec.ts index 23fdddb7f..195214660 100644 --- a/web/crux-ui/e2e/with-login/deployment/deployment-copy.spec.ts +++ b/web/crux-ui/e2e/with-login/deployment/deployment-copy.spec.ts @@ -116,7 +116,7 @@ test.describe('Deployment Copy', () => { await copyButton.click() const newPrefix = 'dcpy-second' - await page.locator(`button:has-text("${DAGENT_NODE}")`).click() + await page.locator(`button:has-text("${DAGENT_NODE}")`).first().click() await fillDeploymentPrefix(page, newPrefix) const currentUrl = page.url() diff --git a/web/crux-ui/e2e/with-login/deployment/deployment-copyability-versioned.spec.ts b/web/crux-ui/e2e/with-login/deployment/deployment-copyability-versioned.spec.ts index 39b799f2d..9a46939a3 100644 --- a/web/crux-ui/e2e/with-login/deployment/deployment-copyability-versioned.spec.ts +++ b/web/crux-ui/e2e/with-login/deployment/deployment-copyability-versioned.spec.ts @@ -75,7 +75,7 @@ test.describe('Versioned Project', () => { const copyButton = await page.locator('button:has-text("Copy")') await copyButton.click() - await page.locator(`button:has-text("${nodeName}")`).click() + await page.locator(`button:has-text("${nodeName}")`).first().click() await fillDeploymentPrefix(page, `${prefix}-new-prefix`) const currentUrl = page.url() @@ -102,7 +102,7 @@ test.describe('Versioned Project', () => { const copyButton = await page.locator(`[alt="Copy"]:right-of(:has-text("${projectName}"))`).first() await copyButton.click() - await page.locator(`button:has-text("${nodeName}")`).click() + await page.locator(`button:has-text("${nodeName}")`).first().click() await fillDeploymentPrefix(page, prefix) await page.locator('button:has-text("Copy")').click() diff --git a/web/crux-ui/e2e/with-login/deployment/deployment-copyability-versionless.spec.ts b/web/crux-ui/e2e/with-login/deployment/deployment-copyability-versionless.spec.ts index 16f8b1fbb..fb0c11d3e 100644 --- a/web/crux-ui/e2e/with-login/deployment/deployment-copyability-versionless.spec.ts +++ b/web/crux-ui/e2e/with-login/deployment/deployment-copyability-versionless.spec.ts @@ -41,7 +41,7 @@ test.describe('Versionless Project', () => { const copyButton = await page.locator(`[alt="Copy"]:right-of(:has-text("${projectName}"))`).first() await copyButton.click() - await page.locator(`button:has-text("${nodeName}")`).click() + await page.locator(`button:has-text("${nodeName}")`).first().click() await fillDeploymentPrefix(page, prefix) await page.locator('button:has-text("Copy")').click() @@ -96,7 +96,7 @@ test.describe('Versionless Project', () => { const copyButton = page.locator('button:has-text("Copy")') await copyButton.click() - await page.locator(`button:has-text("${nodeName}")`).click() + await page.locator(`button:has-text("${nodeName}")`).first().click() await fillDeploymentPrefix(page, `${prefix}-new-prefix`) const currentUrl = page.url() diff --git a/web/crux-ui/e2e/with-login/deployment/deployment.spec.ts b/web/crux-ui/e2e/with-login/deployment/deployment.spec.ts index ea1a6101e..88752c255 100644 --- a/web/crux-ui/e2e/with-login/deployment/deployment.spec.ts +++ b/web/crux-ui/e2e/with-login/deployment/deployment.spec.ts @@ -110,7 +110,7 @@ test('Can create from deployments page', async ({ page }) => { await page.locator('button:has-text("Add")').click() await expect(page.locator('h4:has-text("Add")')).toBeVisible() - await page.locator(`button:has-text("${DAGENT_NODE}")`).click() + await page.locator(`button:has-text("${DAGENT_NODE}")`).first().click() await page.locator(`button:has-text("${projectName}")`).click() await page.locator(`button:has-text("${versionName}")`).click() await fillDeploymentPrefix(page, projectName.toLowerCase()) diff --git a/web/crux-ui/e2e/with-login/resource-copy.spec.ts b/web/crux-ui/e2e/with-login/resource-copy.spec.ts index 42730f758..6f78d4046 100644 --- a/web/crux-ui/e2e/with-login/resource-copy.spec.ts +++ b/web/crux-ui/e2e/with-login/resource-copy.spec.ts @@ -301,7 +301,7 @@ test.describe("Deleting copied deployment's parent", () => { const copyButton = page.locator('button:has-text("Copy")') await copyButton.click() - await page.locator(`button:has-text("${DAGENT_NODE}")`).click() + await page.locator(`button:has-text("${DAGENT_NODE}")`).first().click() await fillDeploymentPrefix(page, `${prefix}-other`) const currentUrl = page.url()