From 43a053eb49ca72a85d699be253a7979e36256d92 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 16 Dec 2024 10:34:12 +0100 Subject: [PATCH] Fix local e2e tests --- client/e2e/src/po/video-watch.po.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/e2e/src/po/video-watch.po.ts b/client/e2e/src/po/video-watch.po.ts index 92a46bbba..0804c2545 100644 --- a/client/e2e/src/po/video-watch.po.ts +++ b/client/e2e/src/po/video-watch.po.ts @@ -211,7 +211,7 @@ export class VideoWatchPage { async createReply (comment: string) { const replyButton = await $('button.comment-action-reply') await replyButton.waitForClickable() - await replyButton.scrollIntoView() + await replyButton.scrollIntoView({ block: 'center' }) await replyButton.click() const textarea = await $('my-video-comment my-video-comment-add textarea') @@ -220,11 +220,12 @@ export class VideoWatchPage { const confirmButton = await $('my-video-comment .comment-buttons .primary-button') await confirmButton.waitForClickable() + await replyButton.scrollIntoView({ block: 'center' }) await confirmButton.click() const createdComment = await $('.is-child .comment-html p') await createdComment.waitForDisplayed() - return expect(await createdComment.getTagName()).toBe(comment) + return expect(await createdComment.getText()).toBe(comment) } }