mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-19 06:28:03 +00:00
PLAYWRIGHT: fix bulk import database flaky test (#21145)
This commit is contained in:
parent
f96151146c
commit
78e7e74b2b
@ -707,6 +707,12 @@ export const pressKeyXTimes = async (
|
||||
key: string
|
||||
) => {
|
||||
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
|
||||
.locator('.InovuaReactDataGrid__cell--cell-active')
|
||||
.press(key, { delay: 100 });
|
||||
|
Loading…
x
Reference in New Issue
Block a user