mirror of https://github.com/Chocobozzz/PeerTube
Fix local e2e tests
parent
f80157eff8
commit
43a053eb49
|
@ -211,7 +211,7 @@ export class VideoWatchPage {
|
||||||
async createReply (comment: string) {
|
async createReply (comment: string) {
|
||||||
const replyButton = await $('button.comment-action-reply')
|
const replyButton = await $('button.comment-action-reply')
|
||||||
await replyButton.waitForClickable()
|
await replyButton.waitForClickable()
|
||||||
await replyButton.scrollIntoView()
|
await replyButton.scrollIntoView({ block: 'center' })
|
||||||
await replyButton.click()
|
await replyButton.click()
|
||||||
|
|
||||||
const textarea = await $('my-video-comment my-video-comment-add textarea')
|
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')
|
const confirmButton = await $('my-video-comment .comment-buttons .primary-button')
|
||||||
await confirmButton.waitForClickable()
|
await confirmButton.waitForClickable()
|
||||||
|
await replyButton.scrollIntoView({ block: 'center' })
|
||||||
await confirmButton.click()
|
await confirmButton.click()
|
||||||
|
|
||||||
const createdComment = await $('.is-child .comment-html p')
|
const createdComment = await $('.is-child .comment-html p')
|
||||||
await createdComment.waitForDisplayed()
|
await createdComment.waitForDisplayed()
|
||||||
|
|
||||||
return expect(await createdComment.getTagName()).toBe(comment)
|
return expect(await createdComment.getText()).toBe(comment)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue