Skip to content

Commit

Permalink
fix: e2e multiple buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
robot9706 committed Dec 2, 2024
1 parent 8c6c722 commit 3bc64b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 3bc64b4

Please sign in to comment.