Skip to content

Commit c59ab9e

Browse files
update test cases
1 parent ab44771 commit c59ab9e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/e2e-test/tests/test_st_docgen_tc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3072,7 +3072,7 @@ def test_bug_10178_delete_all_chat_history_error(request, login_logout):
30723072

30733073
test_questions = [
30743074
"What are typical sections in a promissory note?",
3075-
"What is a principal amount?",
3075+
"Remove Notices section",
30763076
]
30773077

30783078
for i, question in enumerate(test_questions, start=1):
@@ -3151,14 +3151,14 @@ def test_bug_10178_delete_all_chat_history_error(request, login_logout):
31513151

31523152
logger.info("Clicking 'Clear All' button to confirm deletion...")
31533153
clear_all_button.click()
3154-
page.wait_for_timeout(20000) # Wait longer for deletion to complete (increased for bulk deletion)
3154+
page.wait_for_timeout(30000) # Wait longer for deletion to complete (increased for bulk deletion)
31553155

31563156
# Verify all histories are deleted (should see "No chat history" message)
31573157
no_history_text = page.locator("//span[contains(text(),'No chat history.')]")
31583158

31593159
try:
31603160
# Use expect with timeout for better reliability
3161-
expect(no_history_text).to_be_visible(timeout=15000)
3161+
expect(no_history_text).to_be_visible(timeout=30000)
31623162
logger.info("✅ All histories are deleted - 'No chat history' message displayed")
31633163
except Exception as e:
31643164
logger.error("Failed to verify 'No chat history' message: %s", str(e))

0 commit comments

Comments
 (0)