From b3189a99d63ff84ff42523552e2a5c3825fef2cf Mon Sep 17 00:00:00 2001 From: Kent Wang Date: Tue, 25 Mar 2025 17:44:41 +0800 Subject: [PATCH] Fix the flaky case for environment editor --- .../tests/smoke/environment-editor-interactions.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/insomnia-smoke-test/tests/smoke/environment-editor-interactions.test.ts b/packages/insomnia-smoke-test/tests/smoke/environment-editor-interactions.test.ts index 13ec766d9ea..5f797c684d1 100644 --- a/packages/insomnia-smoke-test/tests/smoke/environment-editor-interactions.test.ts +++ b/packages/insomnia-smoke-test/tests/smoke/environment-editor-interactions.test.ts @@ -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();