@@ -9,7 +9,7 @@ class BIABPage(BasePage):
99
1010 WELCOME_PAGE_TITLE = "//span[normalize-space()='Multi-Agent Planner']"
1111 NEW_TASK_PROMPT = "//textarea[@placeholder='Tell us what needs planning, building, or connecting—we'll handle the rest.']"
12- SEND_BUTTON = "//button[@type='button ']"
12+ SEND_BUTTON = "//div[@role='toolbar ']"
1313 CREATING_PLAN = "//span[normalize-space()='Creating a plan']"
1414 TASK_LIST = "//span[contains(text(),'1.')]"
1515 NEW_TASK = "//span[normalize-space()='New task']"
@@ -92,6 +92,7 @@ def enter_a_question(self, text):
9292 def processing_different_stage (self ):
9393 """Process and approve each stage sequentially if present."""
9494 self .page .wait_for_timeout (3000 )
95+ total_count = self .page .locator (self .STAGES ).count ()
9596 if self .page .locator (self .STAGES ).count () >= 1 :
9697 for _ in range (self .page .locator (self .STAGES ).count ()):
9798 approve_stages = self .page .locator (self .STAGES ).nth (0 )
@@ -105,5 +106,5 @@ def processing_different_stage(self):
105106 BasePage .approve_plan_by_id (self , plan_id )
106107 self .page .wait_for_timeout (7000 )
107108
108- expect (self .page .locator (self .COMPLETED_TASK )).to_contain_text (" completed" )
109+ expect (self .page .locator (self .COMPLETED_TASK )).to_contain_text (f" { total_count } of { total_count } completed" )
109110
0 commit comments