mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-14 18:03:38 +00:00
PLAYWRIGHT: fix bulk import database flaky test (#21145)
(cherry picked from commit 78e7e74b2bbbbc0848914671f1b25501d0d4902c)
This commit is contained in:
parent
fad01758ad
commit
47c17180bd
@ -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 });
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user