Skip to content

Commit ad19e8c

Browse files
sadpandajoeclaude
andcommitted
fix(playwright): target input element directly for saved-queries search
antd v5 puts data-test on the <input> itself, not a wrapper — the descendant selector [data-test="filters-search"] input never matched. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 565ee57 commit ad19e8c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

superset-frontend/playwright/tests/sqllab/sqllab.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import { test, expect } from '../../helpers/fixtures/testAssets';
3030
import { SqlLabPage } from '../../pages/SqlLabPage';
3131
import { ExplorePage } from '../../pages/ExplorePage';
32+
import { Input } from '../../components/core';
3233
import { SaveQueryModal } from '../../components/modals/SaveQueryModal';
3334
import { SaveDatasetModal } from '../../components/modals/SaveDatasetModal';
3435
import { waitForGet, waitForPost } from '../../helpers/api/intercepts';
@@ -224,7 +225,7 @@ test('saves a query and loads it from saved queries', async ({
224225
});
225226

226227
// Search for the saved query by its unique name
227-
const searchInput = page.locator('[data-test="filters-search"] input');
228+
const searchInput = new Input(page, 'input[data-test="filters-search"]');
228229
await searchInput.fill(savedQueryTitle);
229230

230231
// Wait for the filtered row to appear in the table

0 commit comments

Comments
 (0)