Browse Source

fix: Fixed flakyness for gallery test

pull/6414/head
Muhammed Mustafa 1 year ago
parent
commit
1c903f9aec
  1. 7
      tests/playwright/pages/Dashboard/Gallery/index.ts

7
tests/playwright/pages/Dashboard/Gallery/index.ts

@ -24,7 +24,12 @@ export class GalleryPage extends BasePage {
}
async openExpandedRow({ index }: { index: number }) {
await this.card(index).click();
await this.card(index).click({
position: {
x: 1,
y: 1,
},
});
await (await this.rootPage.locator('.ant-drawer-body').elementHandle())?.waitForElementState('stable');
}

Loading…
Cancel
Save