Skip to content

Commit 15c2f3e

Browse files
Merge pull request #2 from sanketpathak/prabhu/fix-tp-extention-test
fix(e2e): fix extension e2e test
2 parents d522fdd + 80a8573 commit 15c2f3e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

e2e-tests/playwright/support/pages/extensions.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ export class Extensions {
3131
async clickReadMoreByPluginTitle(pluginTitle: string) {
3232
const allCards = this.page.locator(".v5-MuiPaper-outlined");
3333
const targetCard = allCards.filter({ hasText: pluginTitle });
34-
// Additional wait to ensure the panel stays open after any re-rendering
35-
await this.page.waitForTimeout(1000);
3634
await targetCard.getByRole("link", { name: "Read more" }).click();
3735
}
3836

@@ -131,6 +129,7 @@ export class Extensions {
131129

132130
if (searchTerm) {
133131
await this.uiHelper.searchInputPlaceholder(searchTerm);
132+
await expect(this.page.locator('[class*="v5-MuiPaper-elevation"]')).toContainText('Plugins (1)', { timeout: 10000});//.toHaveCount(1, { timeout: 10000});
134133
}
135134

136135
if (pluginName) {

0 commit comments

Comments
 (0)