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 81bbc87c7..0ea08dab0 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 @@ -99,6 +99,8 @@ test.describe('Versioned Project', () => { await page.goto(TEAM_ROUTES.deployment.list()) await page.waitForSelector('h2:text-is("Deployments")') + await page.getByPlaceholder('Search').fill(prefix) + const copyButton = await page.locator(`[alt="Copy"]:right-of(:has-text("${projectName}"))`).first() await copyButton.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 95917cf2f..3d0aaaeae 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 @@ -38,10 +38,12 @@ test.describe('Versionless Project', () => { await page.goto(TEAM_ROUTES.deployment.list()) await page.waitForSelector('h2:text-is("Deployments")') + await page.getByPlaceholder('Search').fill(prefix) + const copyButton = await page.locator(`[alt="Copy"]:right-of(:has-text("${projectName}"))`).first() await copyButton.click() - await page.locator(`button:has-text("${nodeName}"):above(:has-text("Projects"))`).click() + await page.locator(`button:has-text("${nodeName}"):above(:has-text("Prefix"))`).click() await fillDeploymentPrefix(page, prefix) await page.locator('button:has-text("Copy")').click() @@ -69,7 +71,7 @@ test.describe('Versionless Project', () => { const copyButton = page.locator('button:has-text("Copy")') await copyButton.click() - await page.locator(`button:has-text("${otherNode}")`).click() + await page.locator(`button:has-text("${otherNode}"):above(:has-text("Prefix"))`).click() await fillDeploymentPrefix(page, prefix) const currentUrl = page.url() @@ -96,7 +98,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}"):above(:has-text("Prefix"))`).click() await fillDeploymentPrefix(page, `${prefix}-new-prefix`) const currentUrl = page.url() diff --git a/web/crux-ui/e2e/with-login/deployment/deployment-deletability.spec.ts b/web/crux-ui/e2e/with-login/deployment/deployment-deletability.spec.ts index 0a6379af5..8cc033c15 100644 --- a/web/crux-ui/e2e/with-login/deployment/deployment-deletability.spec.ts +++ b/web/crux-ui/e2e/with-login/deployment/deployment-deletability.spec.ts @@ -89,6 +89,8 @@ test('Deleting a deployment should refresh deployment list', async ({ page }) => await page.goto(TEAM_ROUTES.deployment.list()) await page.waitForSelector('h2:text-is("Deployments")') + await page.getByPlaceholder('Search').fill(projectName) + await deleteRefreshDeployment() await expect(page.locator(`.p-2:has-text('pw-${projectName}')`)).toHaveCount(1) await deleteRefreshDeployment()