fix: debug ci tests

This commit is contained in:
Zack Fu Zi Xiang 2024-11-11 09:51:56 +08:00
parent b62552f382
commit b89490777c
No known key found for this signature in database
1 changed files with 14 additions and 4 deletions

View File

@ -480,10 +480,20 @@ async fn test_publish_comments() {
// Test if only authenticated users can create
let page_owner_comment_content = "comment from page owner";
page_owner_client
.create_comment_on_published_view(&view_id, page_owner_comment_content, &None)
.await
.unwrap();
{
page_owner_client
.create_comment_on_published_view(&view_id, page_owner_comment_content, &None)
.await
.unwrap();
let comments = page_owner_client
.get_published_view_comments(&view_id)
.await
.unwrap()
.comments;
assert_eq!(comments.len(), 1);
assert_eq!(comments[0].content, page_owner_comment_content);
}
let (first_user_client, first_user) = generate_unique_registered_user_client().await;
let first_user_comment_content = "comment from first authenticated user";
// This is to ensure that the second comment creation timestamp is later than the first one