From fee6223682b62639b81772a1b08c17294ad54619 Mon Sep 17 00:00:00 2001 From: Murad Talibov <56686446+muradium@users.noreply.github.com> Date: Mon, 2 Dec 2024 21:55:39 +0100 Subject: [PATCH] Development: Fix a flaky e2e test where the instructor edits a channel (#9922) --- src/test/playwright/e2e/course/CourseMessages.spec.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/playwright/e2e/course/CourseMessages.spec.ts b/src/test/playwright/e2e/course/CourseMessages.spec.ts index 62823545744e..291aaaa095b8 100644 --- a/src/test/playwright/e2e/course/CourseMessages.spec.ts +++ b/src/test/playwright/e2e/course/CourseMessages.spec.ts @@ -148,6 +148,7 @@ test.describe('Course messages', { tag: '@fast' }, () => { await courseMessages.editDescription('New Description'); await courseMessages.closeEditPanel(); await page.reload(); + await page.locator('jhi-conversation-header').waitFor({ state: 'visible', timeout: 10000 }); await expect(courseMessages.getName()).toContainText(newName); await expect(courseMessages.getTopic()).toContainText(topic); });