PLAYWRIGHT: fix bulk import database flaky test (#21145)

This commit is contained in:
Ashish Gupta 2025-05-12 21:22:13 +05:30 committed by GitHub
parent f96151146c
commit 78e7e74b2b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -707,6 +707,12 @@ export const pressKeyXTimes = async (
key: string key: string
) => { ) => {
for (let i = 0; i < length; i++) { for (let i = 0; i < length; i++) {
const activeCell = page.locator('.InovuaReactDataGrid__cell--cell-active');
const isActive = await activeCell.isVisible();
if (!isActive) {
await page.click('.InovuaReactDataGrid__cell--cell-active');
}
await page await page
.locator('.InovuaReactDataGrid__cell--cell-active') .locator('.InovuaReactDataGrid__cell--cell-active')
.press(key, { delay: 100 }); .press(key, { delay: 100 });