From 38830cee53d7522e05d5f0b0d4fb44dfc662524e Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Fri, 14 Feb 2025 03:20:01 +0530 Subject: [PATCH] fix(api): refresh search page golden snapshot --- .../dev/msfjarvis/claw/api/SearchApiTest.kt | 32 +++++++++---------- .../test/resources/search_chatgpt_page.html | 12 ++++--- 2 files changed, 23 insertions(+), 21 deletions(-) diff --git a/api/src/test/kotlin/dev/msfjarvis/claw/api/SearchApiTest.kt b/api/src/test/kotlin/dev/msfjarvis/claw/api/SearchApiTest.kt index 726d40c8..a96a4338 100644 --- a/api/src/test/kotlin/dev/msfjarvis/claw/api/SearchApiTest.kt +++ b/api/src/test/kotlin/dev/msfjarvis/claw/api/SearchApiTest.kt @@ -31,29 +31,29 @@ class SearchApiTest { private val results = listOf( LobstersPost( - shortId = "gjlsdg", - title = "ChatGPT visits the Emacs doctor", - url = "https://xenodium.com/chatgpt-visits-the-emacs-doctor/", + shortId = "vvky3g", createdAt = "", - commentCount = 3, - commentsUrl = "https://lobste.rs/s/gjlsdg/chatgpt_visits_emacs_doctor", - submitter = "xenodium", - tags = listOf("ai", "emacs"), + title = "2024 State of Rust Survey Results", + url = "https://blog.rust-lang.org/2025/02/13/2024-State-Of-Rust-Survey-results.html", description = "", - userIsAuthor = true, + commentCount = 10, + commentsUrl = "https://lobste.rs/s/vvky3g/2024_state_rust_survey_results", + submitter = "obsoleszenz", + userIsAuthor = false, + tags = listOf("rust"), ), LobstersPost( - shortId = "astcqf", - title = - "Implementing a question-answering system for PDF documents using ChatGPT and Redis", - url = "https://mstack.nl/blog/20230623-chatgpt-question-pdf-document/", + shortId = "wjoric", createdAt = "", + title = "New hack uses prompt injection to corrupt Gemini’s long-term memory", + url = + "https://arstechnica.com/security/2025/02/new-hack-uses-prompt-injection-to-corrupt-geminis-long-term-memory/", + description = "", commentCount = 0, - commentsUrl = "https://lobste.rs/s/astcqf/implementing_question_answering_system", - submitter = "asteroid", + commentsUrl = "https://lobste.rs/s/wjoric/new_hack_uses_prompt_injection_corrupt", + submitter = "laktak", + userIsAuthor = false, tags = listOf("ai"), - description = "", - userIsAuthor = false, ), ) } diff --git a/api/src/test/resources/search_chatgpt_page.html b/api/src/test/resources/search_chatgpt_page.html index 97df903e..c260b000 100644 --- a/api/src/test/resources/search_chatgpt_page.html +++ b/api/src/test/resources/search_chatgpt_page.html @@ -1,5 +1,7 @@ -Search | Lobsters

Search

 
   

225 results for "ChatGPT"

  1. 18
  2. 5
  3. 1
  4. 4
  5. 1
  6. 18
  7. 4
  8. 5
  9. 21
  10. 2
  11. -2
  12. 5
  13. 1
  14. -1
  15. 59
  16. 2
  17. 4
  18. 5
  19. 24
  20. 2
\ No newline at end of file +Search | Lobsters

Search

 
   
567 results for ChatGPT

Search query parsed to:

ChatGPT
Term: ChatGPT
  1. 6
  2. 2
  3. 16
  4. 1
  5. 34
  6. 1
  7. 2
  8. 31
  9. 7
  10. 5
  11. 7
  12. 3
  13. 8
  14. 3
  15. 12
  16. 39
  17. 2
  18. 0
  19. 101
  20. 6
\ No newline at end of file