Skip to content

Commit a940927

Browse files
fix: increase timeout for send button click and adjust test flow to validate draft generation
1 parent c7060db commit a940927

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

playwright-tests/pages/generatePage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def enter_a_question(self, text):
1717
def click_send_button(self ):
1818
# Type a question in the text area
1919
self.page.locator(self.SEND_BUTTON).click()
20-
self.page.wait_for_timeout(10000)
20+
self.page.wait_for_timeout(25000)
2121

2222
def click_generate_draft_button(self ):
2323
# Type a question in the text area

playwright-tests/tests/test_poc_docgen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ def test_DKM_GOLDENPATH(login_logout):
2929
generate_page = GeneratePage(page)
3030
generate_page.enter_a_question(generate_question1)
3131
generate_page.click_send_button()
32-
generate_page.click_generate_draft_button()
3332
generate_page.validate_response_status(question_api=generate_question1)
33+
generate_page.click_generate_draft_button()
3434
draft_page = DraftPage(page)
3535
draft_page.check_draft_Sections()
3636

0 commit comments

Comments
 (0)