Skip to content

Commit

Permalink
fix: failing test case
Browse files Browse the repository at this point in the history
  • Loading branch information
m8vago committed Dec 6, 2024
1 parent 70d78f8 commit c8dd2ca
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ test.describe('Versioned Project', () => {
await page.waitForSelector('h2:text-is("Deployments")')

await page.getByPlaceholder('Search').fill(prefix)
await expect(page.locator('table.w-full >> tbody >> tr')).toHaveCount(1)

const copyButton = await page.locator(`[alt="Copy"]:right-of(:has-text("${projectName}"))`).first()
await copyButton.click()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ test.describe('Versionless Project', () => {
await page.waitForSelector('h2:text-is("Deployments")')

await page.getByPlaceholder('Search').fill(prefix)
await expect(page.locator('table.w-full >> tbody >> tr')).toHaveCount(1)

const copyButton = await page.locator(`[alt="Copy"]:right-of(:has-text("${projectName}"))`).first()
await copyButton.click()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ test('Deleting a deployment should refresh deployment list', async ({ page }) =>
await page.waitForSelector('h2:text-is("Deployments")')

await page.getByPlaceholder('Search').fill(projectName)
await expect(page.locator('table.w-full >> tbody >> tr')).toHaveCount(2)

await deleteRefreshDeployment()
await expect(page.locator(`.p-2:has-text('pw-${projectName}')`)).toHaveCount(1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ test('Protecting a deployment should fail while an incremental protected deploym
await page.click('button:text-is("Deployments")')

const deploymentsRows = await page.locator('table.w-full >> tbody >> tr')
await expect(deploymentsRows).toHaveCount(1)
await expect(deploymentsRows).not.toBeEmpty()
await deploymentsRows.locator(`td:has-text("${PREFIX}")`).click()

await deploymentsRows.first().click()
await page.waitForURL(`${TEAM_ROUTES.deployment.list()}/**`)
await page.waitForSelector('h2:text-is("Deployments")')
const editDeploymentId = page.url().split('/').pop()
Expand Down

0 comments on commit c8dd2ca

Please sign in to comment.