From 7ef8f7743feb47dba69a845c9f799b2513ca4ec7 Mon Sep 17 00:00:00 2001 From: Mate Vago Date: Mon, 6 Jan 2025 13:06:58 +0100 Subject: [PATCH] fix: overflowing node name --- .../deployment/deployment-copyability-versioned.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 288e91280..cc5b9a898 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}"):above(label:has-text("Prefix"))`).click() await fillDeploymentPrefix(page, `${prefix}-new-prefix`) const currentUrl = page.url() @@ -87,7 +87,7 @@ test.describe('Versioned Project', () => { }) test('deployment should not be copiable to the same node with the same prefix', async ({ page }) => { - const nodeName = 'versioned-copiability-same-node-same-prefix' + const nodeName = 'vc-same-node-same-prefix' const projectName = nodeName const prefix = projectName @@ -105,7 +105,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}"):above(label:has-text("Prefix"))`).click() await fillDeploymentPrefix(page, prefix) await page.locator('button:has-text("Copy")').click()