Fix the flaky case for environment editor (#8520)

This commit is contained in:
Kent Wang
2025-03-28 10:14:54 +08:00
committed by Jay Wu
parent e8f25b99e2
commit 7799ab6ca5

View File

@@ -127,6 +127,8 @@ test.describe('Environment Editor', async () => {
await expect(firstRow).toHaveCSS('opacity', '0.4');
// delete all items
await page.getByRole('button', { name: 'Delete All' }).dblclick();
// check items have been deleted
await expect(kvTable.getByRole('option').nth(2)).not.toBeVisible();
firstRow = await kvTable.getByRole('option').first();
await firstRow.getByTestId('OneLineEditor').first().click();